Test caching of HEAD requests
(self)
| 431 | Tests specific to caching responses |
| 432 | """ |
| 433 | def test_head_caching(self): |
| 434 | """ |
| 435 | Test caching of HEAD requests |
| 436 | """ |
| 437 | response = self.client.head('/cache') |
| 438 | cache.set('key', response) |
| 439 | cached_response = cache.get('key') |
| 440 | assert isinstance(cached_response, Response) |
| 441 | assert cached_response.content == response.content |
| 442 | assert cached_response.status_code == response.status_code |
| 443 | |
| 444 | def test_get_caching(self): |
| 445 | """ |