(self)
| 1764 | self.assertEqual(response.headers["Vary"], "Accept-Encoding") |
| 1765 | |
| 1766 | def test_gzip_static(self): |
| 1767 | # The streaming responses in StaticFileHandler have subtle |
| 1768 | # interactions with the gzip output so test this case separately. |
| 1769 | response = self.fetch("/robots.txt") |
| 1770 | self.assert_compressed(response) |
| 1771 | self.assertEqual(response.headers["Vary"], "Accept-Encoding") |
| 1772 | |
| 1773 | def test_gzip_not_requested(self): |
| 1774 | response = self.fetch("/", use_gzip=False) |
nothing calls this directly
no test coverage detected