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

Function test_header_set_duplication_bug

tests/test_utils.py:238–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236
237
238def test_header_set_duplication_bug():
239 headers = Headers([("Content-Type", "text/html"), ("Foo", "bar"), ("Blub", "blah")])
240 headers["blub"] = "hehe"
241 headers["blafasel"] = "humm"
242 assert headers == Headers(
243 [
244 ("Content-Type", "text/html"),
245 ("Foo", "bar"),
246 ("blub", "hehe"),
247 ("blafasel", "humm"),
248 ]
249 )
250
251
252@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

HeadersClass · 0.90

Tested by

no test coverage detected