diff options
author | Larry O'Neill <larryoneill@gmail.com> | 2013-10-14 20:13:14 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2013-10-14 18:12:00 -0400 |
commit | 83b9bfea44e23c5770fa14a8921914839929233b (patch) | |
tree | 38039b835449a0dd8d0283286f7dbcf92ce5180a /tests/admin_custom_urls | |
parent | 42a67ec1cd8cbaffd87f0a7b34714f7d4a259cfb (diff) | |
download | django-83b9bfea44e23c5770fa14a8921914839929233b.tar.gz |
Fixed #21266 -- Fixed E201,E202 pep8 warnings.
Diffstat (limited to 'tests/admin_custom_urls')
-rw-r--r-- | tests/admin_custom_urls/tests.py | 6 |
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) |