(self)
| 16 | |
| 17 | class 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) |
nothing calls this directly
no test coverage detected