MCPcopy
hub / github.com/django/django / test_model_history

Method test_model_history

tests/admin_views/tests.py:6176–6181  ·  view source on GitHub ↗

Check the never-cache status of a model history page

(self)

Source from the content-addressed store, hash-verified

6174 self.assertEqual(get_max_age(response), 0)
6175
6176 def test_model_history(self):
6177 "Check the never-cache status of a model history page"
6178 response = self.client.get(
6179 reverse("admin:admin_views_section_history", args=(self.s1.pk,))
6180 )
6181 self.assertEqual(get_max_age(response), 0)
6182
6183 def test_model_delete(self):
6184 "Check the never-cache status of a model delete page"

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.90
get_max_ageFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected