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

Method test_append_limited

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

Source from the content-addressed store, hash-verified

596 assert buf.take() == expected_first_item
597
598 def test_append_limited(self):
599 b = Messagebuffer(10)
600 for i in range(20):
601 b.put(i)
602 self.assert_size_and_first(b, 10, 10)
603
604 def test_append_unlimited(self):
605 b = Messagebuffer(None)

Callers

nothing calls this directly

Calls 3

putMethod · 0.95
assert_size_and_firstMethod · 0.95
MessagebufferClass · 0.90

Tested by

no test coverage detected