MCPcopy Index your code
hub / github.com/praw-dev/praw / test_lru_contains

Method test_lru_contains

tests/unit/models/test_util.py:37–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 assert 1 not in bset
36
37 def test_lru_contains(self):
38 bset = BoundedSet(max_items=10)
39 [bset.add(i) for i in range(10)]
40 assert 0 in bset
41 bset.add(10)
42 assert 0 in bset
43 assert 1 not in bset
44
45
46class TestExponentialCounter(UnitTest):

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
BoundedSetClass · 0.90

Tested by

no test coverage detected