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

Method assert_size_and_first

t/unit/utils/test_collections.py:594–596  ·  view source on GitHub ↗
(self, buf, size, expected_first_item)

Source from the content-addressed store, hash-verified

592class test_Messagebuffer:
593
594 def assert_size_and_first(self, buf, size, expected_first_item):
595 assert len(buf) == size
596 assert buf.take() == expected_first_item
597
598 def test_append_limited(self):
599 b = Messagebuffer(10)

Callers 4

test_append_limitedMethod · 0.95
test_append_unlimitedMethod · 0.95
test_extend_limitedMethod · 0.95
test_extend_unlimitedMethod · 0.95

Calls 1

takeMethod · 0.45

Tested by

no test coverage detected