(self)
| 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 |
nothing calls this directly
no test coverage detected