Added missing test in StaticImageBookTest
This commit is contained in:
@@ -105,6 +105,13 @@ class StaticImageBookTest(StaticBookTest):
|
|||||||
response = self.client.get(url)
|
response = self.client.get(url)
|
||||||
self.assertEqual(response.status_code, 404)
|
self.assertEqual(response.status_code, 404)
|
||||||
|
|
||||||
|
def test_page_xss(self):
|
||||||
|
# The page in the URL used to go right on the page.
|
||||||
|
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')
|
||||||
|
|
||||||
|
|
||||||
class StaticPdfBookTest(StaticBookTest):
|
class StaticPdfBookTest(StaticBookTest):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user