1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #25780 -- Removed redundant status code assertions from tests.

This commit is contained in:
Jon Dufresne
2020-09-06 08:44:34 -07:00
committed by Mariusz Felisiak
parent 982e860b73
commit cee93c6ba1
5 changed files with 11 additions and 32 deletions

View File

@@ -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):