From 01362745ba72286309ff1955219a5ffc32c760b0 Mon Sep 17 00:00:00 2001 From: Preston Holmes Date: Thu, 27 Sep 2012 10:24:34 -0700 Subject: [PATCH] Fixed a small oversight in auth tests Thanks to Vinicius Ruan Cainelli for the catch closes #392 --- django/contrib/auth/tests/basic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/auth/tests/basic.py b/django/contrib/auth/tests/basic.py index ed1d0674fc..bc7344f753 100644 --- a/django/contrib/auth/tests/basic.py +++ b/django/contrib/auth/tests/basic.py @@ -38,8 +38,8 @@ class BasicTestCase(TestCase): self.assertFalse(u.is_superuser) # Check API-based user creation with no password - User.objects.create_user('testuser2', 'test2@example.com') - self.assertFalse(u.has_usable_password()) + u2 = User.objects.create_user('testuser2', 'test2@example.com') + self.assertFalse(u2.has_usable_password()) def test_user_no_email(self): "Check that users can be created without an email"