MCPcopy
hub / github.com/django/django / test_aget_user_anonymous

Method test_aget_user_anonymous

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

Source from the content-addressed store, hash-verified

148 self.assertIsInstance(user, AnonymousUser)
149
150 async def test_aget_user_anonymous(self):
151 request = HttpRequest()
152 request.session = await self.client.asession()
153 user = await aget_user(request)
154 self.assertIsInstance(user, AnonymousUser)
155
156 def test_get_user(self):
157 created_user = User.objects.create_user(

Callers

nothing calls this directly

Calls 3

HttpRequestClass · 0.90
aget_userFunction · 0.90
asessionMethod · 0.80

Tested by

no test coverage detected