(self)
| 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") |
nothing calls this directly
no test coverage detected