summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 9b6c3db8de..a2c742f3ed 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -1551,6 +1551,11 @@ class AdminViewPermissionsTest(TestCase):
self.client.get(reverse('admin:logout'))
+ def test_history_view_bad_url(self):
+ self.client.post(reverse('admin:login'), self.changeuser_login)
+ response = self.client.get(reverse('admin:admin_views_article_history', args=('foo',)))
+ self.assertEqual(response.status_code, 404)
+
def test_conditionally_show_add_section_link(self):
"""
The foreign key widget should only show the "add related" button if the