summaryrefslogtreecommitdiff
path: root/tests/admin_custom_urls
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_custom_urls')
-rw-r--r--tests/admin_custom_urls/tests.py19
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)