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

Method test_vary_already_present

tornado/test/web_test.py:1946–1952  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1944 self.assertEqual(response.headers["Vary"], "Accept-Encoding")
1945
1946 def test_vary_already_present(self):
1947 response = self.fetch("/?vary=Accept-Language")
1948 self.assert_compressed(response)
1949 self.assertEqual(
1950 [s.strip() for s in response.headers["Vary"].split(",")],
1951 ["Accept-Language", "Accept-Encoding"],
1952 )
1953
1954 def test_vary_already_present_multiple(self):
1955 # Regression test for https://github.com/tornadoweb/tornado/issues/1670

Callers

nothing calls this directly

Calls 3

assert_compressedMethod · 0.95
splitMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected