MCPcopy
hub / github.com/django/django / test_login

Method test_login

tests/admin_views/tests.py:6190–6194  ·  view source on GitHub ↗

Check the never-cache status of login views

(self)

Source from the content-addressed store, hash-verified

6188 self.assertEqual(get_max_age(response), 0)
6189
6190 def test_login(self):
6191 "Check the never-cache status of login views"
6192 self.client.logout()
6193 response = self.client.get(reverse("admin:index"))
6194 self.assertEqual(get_max_age(response), 0)
6195
6196 def test_logout(self):
6197 "Check the never-cache status of logout view"

Callers

nothing calls this directly

Calls 4

reverseFunction · 0.90
get_max_ageFunction · 0.90
logoutMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected