mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
f801e2c15d
commit
0278947128
|
@ -42,13 +42,13 @@ class BasicTestCase(TestCase):
|
||||||
def test_user_no_email(self):
|
def test_user_no_email(self):
|
||||||
"Check that users can be created without an email"
|
"Check that users can be created without an email"
|
||||||
u = User.objects.create_user('testuser1')
|
u = User.objects.create_user('testuser1')
|
||||||
u.email = ''
|
self.assertEqual(u.email, '')
|
||||||
|
|
||||||
u2 = User.objects.create_user('testuser2', email='')
|
u2 = User.objects.create_user('testuser2', email='')
|
||||||
u2.email = ''
|
self.assertEqual(u2.email, '')
|
||||||
|
|
||||||
u3 = User.objects.create_user('testuser3', email=None)
|
u3 = User.objects.create_user('testuser3', email=None)
|
||||||
u3.email = ''
|
self.assertEqual(u3.email, '')
|
||||||
|
|
||||||
def test_anonymous_user(self):
|
def test_anonymous_user(self):
|
||||||
"Check the properties of the anonymous user"
|
"Check the properties of the anonymous user"
|
||||||
|
|
Loading…
Reference in New Issue