MCPcopy
hub / github.com/tornadoweb/tornado / assert_compressed

Method assert_compressed

tornado/test/web_test.py:1919–1927  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

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

Callers 4

test_gzipMethod · 0.95
test_gzip_staticMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected