MCPcopy Create free account
hub / github.com/encode/starlette / test_mutable_headers_update_dict

Function test_mutable_headers_update_dict

tests/test_datastructures.py:348–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346
347
348def test_mutable_headers_update_dict() -> None:
349 h = MutableHeaders()
350 h |= {"a": "1"}
351 assert isinstance(h, MutableHeaders)
352 assert dict(h) == {"a": "1"}
353 assert h.items() == [("a", "1")]
354 assert h.raw == [(b"a", b"1")]
355
356
357def test_mutable_headers_merge_not_mapping() -> None:

Callers

nothing calls this directly

Calls 2

MutableHeadersClass · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected