MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_gzip_static

Method test_gzip_static

python/python3/tornado/test/web_test.py:1766–1771  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

assert_compressedMethod · 0.95
fetchMethod · 0.45

Tested by

no test coverage detected