(self, response)
| 1917 | ) |
| 1918 | |
| 1919 | def assert_compressed(self, response): |
| 1920 | # simple_httpclient renames the content-encoding header; |
| 1921 | # curl_httpclient doesn't. |
| 1922 | self.assertEqual( |
| 1923 | response.headers.get( |
| 1924 | "Content-Encoding", response.headers.get("X-Consumed-Content-Encoding") |
| 1925 | ), |
| 1926 | "gzip", |
| 1927 | ) |
| 1928 | |
| 1929 | def test_gzip(self): |
| 1930 | response = self.fetch("/") |
no test coverage detected