MCPcopy
hub / github.com/django/django / test_create_user

Method test_create_user

tests/auth_tests/test_models.py:124–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 ]
123
124 def test_create_user(self):
125 email_lowercase = "normal@normal.com"
126 user = User.objects.create_user("user", email_lowercase)
127 self.assertEqual(user.email, email_lowercase)
128 self.assertEqual(user.username, "user")
129 self.assertFalse(user.has_usable_password())
130
131 def test_create_user_email_domain_normalize_rfc3696(self):
132 # According to RFC 3696 Section 3 the "@" symbol can be part of the

Callers

nothing calls this directly

Calls 2

has_usable_passwordMethod · 0.80
create_userMethod · 0.45

Tested by

no test coverage detected