summaryrefslogtreecommitdiff
path: root/tests/admin_custom_urls/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_custom_urls/tests.py')
-rw-r--r--tests/admin_custom_urls/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/admin_custom_urls/tests.py b/tests/admin_custom_urls/tests.py
index 1dc9da7efd..7b46f4848a 100644
--- a/tests/admin_custom_urls/tests.py
+++ b/tests/admin_custom_urls/tests.py
@@ -101,7 +101,7 @@ class CustomRedirects(TestCase):
new object.
Refs 8001, 18310, 19505.
"""
- post_data = { 'name': 'John Doe', }
+ post_data = {'name': 'John Doe'}
self.assertEqual(Person.objects.count(), 0)
response = self.client.post(
reverse('admin:admin_custom_urls_person_add'), post_data)
@@ -120,7 +120,7 @@ class CustomRedirects(TestCase):
Person.objects.create(name='John Doe')
self.assertEqual(Person.objects.count(), 1)
person = Person.objects.all()[0]
- post_data = { 'name': 'Jack Doe', }
+ post_data = {'name': 'Jack Doe'}
response = self.client.post(
reverse('admin:admin_custom_urls_person_change', args=[person.pk]), post_data)
self.assertRedirects(
@@ -131,7 +131,7 @@ class CustomRedirects(TestCase):
Ensures that the ModelAdmin.response_add()'s parameter `post_url_continue`
controls the redirection after an object has been created.
"""
- post_data = { 'name': 'SuperFast', '_continue': '1' }
+ post_data = {'name': 'SuperFast', '_continue': '1'}
self.assertEqual(Car.objects.count(), 0)
response = self.client.post(
reverse('admin:admin_custom_urls_car_add'), post_data)