MCPcopy Create free account
hub / github.com/celery/celery / test_iter

Method test_iter

t/unit/utils/test_collections.py:640–645  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

638 assert repr(Messagebuffer(10, [1, 2, 3]))
639
640 def test_iter(self):
641 b = Messagebuffer(10, list(range(10)))
642 assert len(b) == 10
643 for i, item in enumerate(b):
644 assert item == i
645 assert len(b) == 0
646
647 def test_contains(self):
648 b = Messagebuffer(10, list(range(10)))

Callers

nothing calls this directly

Calls 1

MessagebufferClass · 0.90

Tested by

no test coverage detected