From 3c3edac05fa6720075662ce9a672e4c3704faf76 Mon Sep 17 00:00:00 2001 From: Usman Khalid Date: Mon, 23 Sep 2013 12:58:14 +0000 Subject: [PATCH] Fixed tests name in staticbook --- lms/djangoapps/staticbook/tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/staticbook/tests.py b/lms/djangoapps/staticbook/tests.py index 143f5a46ab..999dfcb8cf 100644 --- a/lms/djangoapps/staticbook/tests.py +++ b/lms/djangoapps/staticbook/tests.py @@ -105,10 +105,9 @@ class StaticImageBookTest(StaticBookTest): response = self.client.get(url) self.assertEqual(response.status_code, 404) - def test_page_xss(self): - # The page in the URL used to go right on the page. + def test_bad_page_id(self): + # A bad page id will cause a 404. self.make_course(textbooks=[IMAGE_BOOK]) - # It's no longer possible to use a non-integer page. with self.assertRaises(NoReverseMatch): self.make_url('book', book_index=0, page='xyzzy')