MCPcopy
hub / github.com/urllib3/urllib3 / test_expire

Method test_expire

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

Source from the content-addressed store, hash-verified

32 assert len(d) == 0
33
34 def test_expire(self) -> None:
35 d: Container[int, str] = Container(5)
36
37 for i in range(5):
38 d[i] = str(i)
39
40 for i in range(5):
41 d.get(0)
42
43 # Add one more entry
44 d[5] = "5"
45
46 # Check state
47 assert list(d._container.keys()) == [2, 3, 4, 0, 5]
48
49 def test_same_key(self) -> None:
50 d: Container[str, int] = Container(5)

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected