(self, response)
| 1749 | ) |
| 1750 | |
| 1751 | def assert_compressed(self, response): |
| 1752 | # simple_httpclient renames the content-encoding header; |
| 1753 | # curl_httpclient doesn't. |
| 1754 | self.assertEqual( |
| 1755 | response.headers.get( |
| 1756 | "Content-Encoding", response.headers.get("X-Consumed-Content-Encoding") |
| 1757 | ), |
| 1758 | "gzip", |
| 1759 | ) |
| 1760 | |
| 1761 | def test_gzip(self): |
| 1762 | response = self.fetch("/") |
no test coverage detected