MCPcopy
hub / github.com/django/django / test_aauthenticate

Method test_aauthenticate

tests/async/test_async_auth.py:20–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 )
19
20 async def test_aauthenticate(self):
21 user = await aauthenticate(username="testuser", password="testpw")
22 self.assertIsInstance(user, User)
23 self.assertEqual(user.username, self.test_user.username)
24 user.is_active = False
25 await user.asave()
26 self.assertIsNone(await aauthenticate(username="testuser", password="testpw"))
27
28 async def test_alogin(self):
29 request = HttpRequest()

Callers

nothing calls this directly

Calls 2

aauthenticateFunction · 0.90
asaveMethod · 0.45

Tested by

no test coverage detected