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

Function test_append_and_get_all

tests/header_map_test.py:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26@pytest.mark.flaky(reruns=3, reruns_delay=2)
27def test_append_and_get_all():
28 h = HeaderMap()
29 h.insert("Accept", "application/json")
30 h.append("Accept", "text/html")
31 all_vals = list(h.get_all("Accept"))
32 assert all_vals == [b"text/html", b"application/json"]
33 assert len(h) == 2
34 assert h.keys_len() == 1
35
36
37@pytest.mark.flaky(reruns=3, reruns_delay=2)

Callers

nothing calls this directly

Calls 5

insertMethod · 0.95
appendMethod · 0.95
get_allMethod · 0.95
keys_lenMethod · 0.95
HeaderMapClass · 0.85

Tested by

no test coverage detected