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

Method test_bound

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

Source from the content-addressed store, hash-verified

16
17class TestBoundedSet(UnitTest):
18 def test_bound(self):
19 bset = BoundedSet(max_items=10)
20 [bset.add(i) for i in range(11)]
21 assert len(bset._set) == 10
22 assert 0 not in bset
23
24 def test_contains(self):
25 bset = BoundedSet(max_items=10)

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
BoundedSetClass · 0.90

Tested by

no test coverage detected