diff options
| author | Alex Morozov <inductor2000@mail.ru> | 2015-11-21 17:00:11 +0300 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-11-21 18:12:33 +0100 |
| commit | 13dba4dba3ad52a8accee6778fb029fe81565d40 (patch) | |
| tree | 4e6b45363b904a153604fe5a4c97d752ee04f873 /tests/admin_custom_urls/tests.py | |
| parent | 68554d16761d1e3bb618686b6d66437c59940b47 (diff) | |
Fixed #25780 -- Removed redundant status code assertions from tests
Diffstat (limited to 'tests/admin_custom_urls/tests.py')
| -rw-r--r-- | tests/admin_custom_urls/tests.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/admin_custom_urls/tests.py b/tests/admin_custom_urls/tests.py index 2255ff59dc..eff23931ef 100644 --- a/tests/admin_custom_urls/tests.py +++ b/tests/admin_custom_urls/tests.py @@ -62,7 +62,6 @@ class AdminCustomUrlsTest(TestCase): string works. """ response = self.client.get(reverse('admin_custom_urls:admin_custom_urls_action_add'), {'name': 'My Action'}) - self.assertEqual(response.status_code, 200) self.assertContains(response, 'value="My Action"') def test_basic_add_POST(self): @@ -75,7 +74,6 @@ class AdminCustomUrlsTest(TestCase): "description": "Description of added action", } response = self.client.post(reverse('admin_custom_urls:admin_custom_urls_action_add'), post_data) - self.assertEqual(response.status_code, 200) self.assertContains(response, 'dismissAddRelatedObjectPopup') self.assertContains(response, 'Action added through a popup') @@ -88,7 +86,6 @@ class AdminCustomUrlsTest(TestCase): url = reverse('admin_custom_urls:%s_action_change' % Action._meta.app_label, args=(quote('add'),)) response = self.client.get(url) - self.assertEqual(response.status_code, 200) self.assertContains(response, 'Change action') # Should correctly get the change_view for the model instance with the @@ -96,7 +93,6 @@ class AdminCustomUrlsTest(TestCase): url = reverse('admin_custom_urls:%s_action_change' % Action._meta.app_label, args=(quote("path/to/html/document.html"),)) response = self.client.get(url) - self.assertEqual(response.status_code, 200) self.assertContains(response, 'Change action') self.assertContains(response, 'value="path/to/html/document.html"') |
