MCPcopy
hub / github.com/urllib3/urllib3 / test_delete

Method test_delete

test/test_collections.py:73–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 assert list(d._container.keys()) == new_order
72
73 def test_delete(self) -> None:
74 d: Container[int, bool] = Container(5)
75
76 for i in range(5):
77 d[i] = True
78
79 del d[0]
80 assert 0 not in d
81
82 d.pop(1)
83 assert 1 not in d
84
85 d.pop(1, None)
86
87 def test_get(self) -> None:
88 d: Container[int, bool | int] = Container(5)

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected