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

Method test_multi_header

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

Source from the content-addressed store, hash-verified

995 self.assertEqual(self.fetch_json("/optional_path/"), {"path": None})
996
997 def test_multi_header(self):
998 response = self.fetch("/multi_header")
999 self.assertEqual(response.headers["x-overwrite"], "2")
1000 self.assertEqual(response.headers.get_list("x-multi"), ["3", "4"])
1001
1002 def test_redirect(self):
1003 response = self.fetch("/redirect?permanent=1", follow_redirects=False)

Callers

nothing calls this directly

Calls 2

get_listMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected