diff options
author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/admin_custom_urls | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/admin_custom_urls')
-rw-r--r-- | tests/admin_custom_urls/tests.py | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/tests/admin_custom_urls/tests.py b/tests/admin_custom_urls/tests.py index 11a0375ae2..319e6f6653 100644 --- a/tests/admin_custom_urls/tests.py +++ b/tests/admin_custom_urls/tests.py @@ -68,9 +68,6 @@ class AdminCustomUrlsTest(TestCase): self.assertContains(response, 'Action added through a popup') def test_admin_URLs_no_clash(self): - """ - Test that some admin URLs work correctly. - """ # Should get the change_view for model instance with PK 'add', not show # the add_view url = reverse('admin_custom_urls:%s_action_change' % Action._meta.app_label, args=(quote('add'),)) @@ -89,10 +86,8 @@ class AdminCustomUrlsTest(TestCase): def test_post_save_add_redirect(self): """ - Ensures that ModelAdmin.response_post_save_add() controls the - redirection after the 'Save' button has been pressed when adding a - new object. - Refs 8001, 18310, 19505. + ModelAdmin.response_post_save_add() controls the redirection after + the 'Save' button has been pressed when adding a new object. """ post_data = {'name': 'John Doe'} self.assertEqual(Person.objects.count(), 0) @@ -104,10 +99,8 @@ class AdminCustomUrlsTest(TestCase): def test_post_save_change_redirect(self): """ - Ensures that ModelAdmin.response_post_save_change() controls the - redirection after the 'Save' button has been pressed when editing an - existing object. - Refs 8001, 18310, 19505. + ModelAdmin.response_post_save_change() controls the redirection after + the 'Save' button has been pressed when editing an existing object. """ Person.objects.create(name='John Doe') self.assertEqual(Person.objects.count(), 1) @@ -118,8 +111,8 @@ class AdminCustomUrlsTest(TestCase): def test_post_url_continue(self): """ - Ensures that the ModelAdmin.response_add()'s parameter `post_url_continue` - controls the redirection after an object has been created. + The ModelAdmin.response_add()'s parameter `post_url_continue` controls + the redirection after an object has been created. """ post_data = {'name': 'SuperFast', '_continue': '1'} self.assertEqual(Car.objects.count(), 0) |