MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / test_get_with_default

Function test_get_with_default

tests/header_map_test.py:114–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113@pytest.mark.flaky(reruns=3, reruns_delay=2)
114def test_get_with_default():
115 h = HeaderMap()
116 h.insert("A", "1")
117 assert h.get("A") == b"1"
118 assert h.get("B", b"default") == b"default"
119 assert h.get("C") is None
120 assert h.get("C", b"default") == b"default"
121 assert h.get("A", b"default") == b"1"

Callers

nothing calls this directly

Calls 3

insertMethod · 0.95
getMethod · 0.95
HeaderMapClass · 0.85

Tested by

no test coverage detected