Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 0278947128cf478b47b0bc87ac0c2de0405b3d2a 1 parent f801e2c
@jezdez jezdez authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/auth/tests/basic.py
View
6 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"
Please sign in to comment.
Something went wrong with that request. Please try again.