MCPcopy
hub / github.com/django/django / test_custom_email

Method test_custom_email

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

Source from the content-addressed store, hash-verified

247 self.assertEqual(AbstractBaseUser.get_email_field_name(), "email")
248
249 def test_custom_email(self):
250 user = CustomEmailField()
251 self.assertEqual(user.get_email_field_name(), "email_address")
252
253
254class AbstractUserTestCase(TestCase):

Callers

nothing calls this directly

Calls 2

CustomEmailFieldClass · 0.85
get_email_field_nameMethod · 0.80

Tested by

no test coverage detected