MCPcopy
hub / github.com/pallets/werkzeug / test_set_header

Method test_set_header

tests/test_http.py:89–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 assert a["en"] == 0.5
88
89 def test_set_header(self):
90 hs = http.parse_set_header('foo, Bar, "Blah baz", Hehe')
91 assert "blah baz" in hs
92 assert "foobar" not in hs
93 assert "foo" in hs
94 assert list(hs) == ["foo", "Bar", "Blah baz", "Hehe"]
95 hs.add("Foo")
96 assert hs.to_header() == 'foo, Bar, "Blah baz", Hehe'
97
98 @pytest.mark.parametrize(
99 ("value", "expect"),

Callers

nothing calls this directly

Calls 3

listFunction · 0.50
addMethod · 0.45
to_headerMethod · 0.45

Tested by

no test coverage detected