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

Function test_remove_and_delitem

tests/header_map_test.py:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37@pytest.mark.flaky(reruns=3, reruns_delay=2)
38def test_remove_and_delitem():
39 h = HeaderMap()
40 h.insert("X-Test", "foo")
41 h.remove("X-Test")
42 assert not h.contains_key("X-Test")
43 h.insert("X-Test", "bar")
44 del h["X-Test"]
45 assert "X-Test" not in h
46
47
48@pytest.mark.flaky(reruns=3, reruns_delay=2)

Callers

nothing calls this directly

Calls 4

insertMethod · 0.95
removeMethod · 0.95
contains_keyMethod · 0.95
HeaderMapClass · 0.85

Tested by

no test coverage detected