diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-12-09 00:20:06 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-12-10 15:12:48 -0500 |
| commit | a2814846ca006b4fbf3a893ec52cd9d444b3a3eb (patch) | |
| tree | 780498814e830e2b8ee6ac435575afdc2e8e63f6 /django/contrib/auth/tests/test_basic.py | |
| parent | 0873200e7f61315ad375061a3dc6d37b514ff985 (diff) | |
Fixed E124 pep8 warnings.
Diffstat (limited to 'django/contrib/auth/tests/test_basic.py')
| -rw-r--r-- | django/contrib/auth/tests/test_basic.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/django/contrib/auth/tests/test_basic.py b/django/contrib/auth/tests/test_basic.py index e5a3e676b8..34b6142632 100644 --- a/django/contrib/auth/tests/test_basic.py +++ b/django/contrib/auth/tests/test_basic.py @@ -130,7 +130,8 @@ class BasicTestCase(TestCase): "Check the operation of the createsuperuser management command" # We can use the management command to create a superuser new_io = StringIO() - call_command("createsuperuser", + call_command( + "createsuperuser", interactive=False, username="joe", email="joe@somewhere.org", @@ -146,7 +147,8 @@ class BasicTestCase(TestCase): # We can supress output on the management command new_io = StringIO() - call_command("createsuperuser", + call_command( + "createsuperuser", interactive=False, username="joe2", email="joe2@somewhere.org", @@ -159,7 +161,8 @@ class BasicTestCase(TestCase): self.assertEqual(u.email, 'joe2@somewhere.org') self.assertFalse(u.has_usable_password()) - call_command("createsuperuser", + call_command( + "createsuperuser", interactive=False, username="joe+admin@somewhere.org", email="joe@somewhere.org", @@ -182,7 +185,8 @@ class BasicTestCase(TestCase): locale.getdefaultlocale = lambda: (None, None) # Call the command in this new environment - call_command("createsuperuser", + call_command( + "createsuperuser", interactive=True, username="nolocale@somewhere.org", email="nolocale@somewhere.org", @@ -212,7 +216,8 @@ class BasicTestCase(TestCase): username_field.verbose_name = ulazy('uživatel') new_io = StringIO() try: - call_command("createsuperuser", + call_command( + "createsuperuser", interactive=True, stdout=new_io ) |
