MCPcopy
hub / github.com/celery/celery / test_pop_empty_with_default

Method test_pop_empty_with_default

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

Source from the content-addressed store, hash-verified

434 self.assert_size_and_first(b, 20, 0)
435
436 def test_pop_empty_with_default(self):
437 b = BufferMap(10)
438 sentinel = object()
439 assert b.take(1, sentinel) is sentinel
440
441 def test_pop_empty_no_default(self):
442 b = BufferMap(10)

Callers

nothing calls this directly

Calls 2

takeMethod · 0.95
BufferMapClass · 0.90

Tested by

no test coverage detected