Fixed a small oversight in auth tests

Thanks to Vinicius Ruan Cainelli for the catch
closes #392
This commit is contained in:
Preston Holmes 2012-09-27 10:24:34 -07:00
parent c9c9a56425
commit 01362745ba
1 changed files with 2 additions and 2 deletions

View File

@ -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"