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

Method test_gzip

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

Source from the content-addressed store, hash-verified

1759 )
1760
1761 def test_gzip(self):
1762 response = self.fetch("/")
1763 self.assert_compressed(response)
1764 self.assertEqual(response.headers["Vary"], "Accept-Encoding")
1765
1766 def test_gzip_static(self):
1767 # The streaming responses in StaticFileHandler have subtle

Callers

nothing calls this directly

Calls 2

assert_compressedMethod · 0.95
fetchMethod · 0.45

Tested by

no test coverage detected