(self)
| 2253 | self.assertNotEqual(get_cache_key(request1), get_cache_key(request2)) |
| 2254 | |
| 2255 | def test_learn_cache_key(self): |
| 2256 | request = self.factory.head(self.path) |
| 2257 | response = HttpResponse() |
| 2258 | response.headers["Vary"] = "Pony" |
| 2259 | # Make sure that the Vary header is added to the key hash |
| 2260 | learn_cache_key(request, response) |
| 2261 | |
| 2262 | self.assertEqual( |
| 2263 | get_cache_key(request), |
| 2264 | "views.decorators.cache.cache_page.settingsprefix.GET." |
| 2265 | "18a03f9c9649f7d684af5db3524f5c99.d41d8cd98f00b204e9800998ecf8427e", |
| 2266 | ) |
| 2267 | |
| 2268 | def test_patch_cache_control(self): |
| 2269 | tests = ( |
nothing calls this directly
no test coverage detected