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

Function test_insert_and_get

tests/header_map_test.py:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13@pytest.mark.flaky(reruns=3, reruns_delay=2)
14def test_insert_and_get():
15 h = HeaderMap()
16 h.insert("Content-Type", "application/json")
17 assert h.get("Content-Type") == b"application/json"
18 assert h["Content-Type"] == b"application/json"
19 assert h.contains_key("Content-Type")
20 assert "Content-Type" in h
21 assert not h.is_empty()
22 assert len(h) == 1
23 assert h.keys_len() == 1
24
25
26@pytest.mark.flaky(reruns=3, reruns_delay=2)

Callers

nothing calls this directly

Calls 6

insertMethod · 0.95
getMethod · 0.95
contains_keyMethod · 0.95
is_emptyMethod · 0.95
keys_lenMethod · 0.95
HeaderMapClass · 0.85

Tested by

no test coverage detected