MCPcopy
hub / github.com/django/django / test_acreate

Method test_acreate

tests/auth_tests/test_basic.py:45–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.assertFalse(u2.has_usable_password())
44
45 async def test_acreate(self):
46 u = await User.objects.acreate_user("testuser", "test@example.com", "testpw")
47 self.assertTrue(u.has_usable_password())
48 self.assertFalse(await u.acheck_password("bad"))
49 self.assertTrue(await u.acheck_password("testpw"))
50
51 def test_unicode_username(self):
52 User.objects.create_user("jörg")

Callers

nothing calls this directly

Calls 3

has_usable_passwordMethod · 0.80
acheck_passwordMethod · 0.80
acreate_userMethod · 0.45

Tested by

no test coverage detected