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

Function test_clear

tests/header_map_test.py:69–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68@pytest.mark.flaky(reruns=3, reruns_delay=2)
69def test_clear():
70 h = HeaderMap()
71 h.insert("A", "1")
72 h.insert("B", "2")
73 h.clear()
74 assert h.is_empty()
75 assert len(h) == 0
76 assert h.keys_len() == 0
77
78
79@pytest.mark.flaky(reruns=3, reruns_delay=2)

Callers

nothing calls this directly

Calls 5

insertMethod · 0.95
clearMethod · 0.95
is_emptyMethod · 0.95
keys_lenMethod · 0.95
HeaderMapClass · 0.85

Tested by

no test coverage detected