def test_admin_caching(self):
        response = self.client.get('/admin/')
        self.assertTrue(response.has_header('Cache-Control'))
        self.assertEqual(response['Cache-Control'], 'private')
Ensure admin is not cached
dataset/ETHPy150Open python/pythondotorg/pydotorg/tests/test_middleware.py/MiddlewareTests.test_admin_caching