summaryrefslogtreecommitdiff
path: root/tests/admin_views/test_actions.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-09-06 08:44:34 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-28 12:26:49 +0100
commitcee93c6ba1493d8578fb6285a4ba33034ee7ceb7 (patch)
tree5f0ca7e0cb1f0632976476758aebd93bb671b3f3 /tests/admin_views/test_actions.py
parent982e860b736a4b1cc359e1fc90ce62d9b1ac7d0a (diff)
Refs #25780 -- Removed redundant status code assertions from tests.
Diffstat (limited to 'tests/admin_views/test_actions.py')
-rw-r--r--tests/admin_views/test_actions.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/admin_views/test_actions.py b/tests/admin_views/test_actions.py
index a98b80a1cb..445e437fc2 100644
--- a/tests/admin_views/test_actions.py
+++ b/tests/admin_views/test_actions.py
@@ -135,9 +135,8 @@ class AdminActionsTest(TestCase):
'index': '0',
}
response = self.client.post(reverse('admin:admin_views_unchangeableobject_changelist'), action_data)
- # No 500 caused by NoReverseMatch
- self.assertEqual(response.status_code, 200)
- # The page doesn't display a link to the nonexistent change page.
+ # No 500 caused by NoReverseMatch. The page doesn't display a link to
+ # the nonexistent change page.
self.assertContains(response, '<li>Unchangeable object: %s</li>' % obj, 1, html=True)
def test_delete_queryset_hook(self):