Permalink
Browse files

Fixed #16363 -- Fixed tests introduced in r16472. Thanks, EnTeQuAk.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f801e2c commit 0278947128cf478b47b0bc87ac0c2de0405b3d2a @jezdez jezdez committed Jun 28, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/auth/tests/basic.py
@@ -42,13 +42,13 @@ def test_user(self):
def test_user_no_email(self):
"Check that users can be created without an email"
u = User.objects.create_user('testuser1')
- u.email = ''
+ self.assertEqual(u.email, '')
u2 = User.objects.create_user('testuser2', email='')
- u2.email = ''
+ self.assertEqual(u2.email, '')
u3 = User.objects.create_user('testuser3', email=None)
- u3.email = ''
+ self.assertEqual(u3.email, '')
def test_anonymous_user(self):
"Check the properties of the anonymous user"

0 comments on commit 0278947

Please sign in to comment.