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

Method test_contains

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

Source from the content-addressed store, hash-verified

22 assert 0 not in bset
23
24 def test_contains(self):
25 bset = BoundedSet(max_items=10)
26 bset.add(1)
27 assert 1 in bset
28
29 def test_lru_add(self):
30 bset = BoundedSet(max_items=10)

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
BoundedSetClass · 0.90

Tested by

no test coverage detected