MCPcopy
hub / github.com/celery/celery / test_iter

Method test_iter

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

Source from the content-addressed store, hash-verified

385 assert repr(Messagebuffer(10, [1, 2, 3]))
386
387 def test_iter(self):
388 b = Messagebuffer(10, list(range(10)))
389 assert len(b) == 10
390 for i, item in enumerate(b):
391 assert item == i
392 assert len(b) == 0
393
394 def test_contains(self):
395 b = Messagebuffer(10, list(range(10)))

Callers

nothing calls this directly

Calls 1

MessagebufferClass · 0.90

Tested by

no test coverage detected