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

Method assert_compressed

python/python3/tornado/test/web_test.py:1751–1759  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

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("/")

Callers 4

test_gzipMethod · 0.95
test_gzip_staticMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected