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

Method test_stack

t/unit/utils/test_threads.py:211–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209class test_FastLocalStack:
210
211 def test_stack(self):
212 x = _FastLocalStack()
213 x.push(['foo'])
214 x.push(['bar'])
215 assert x.top == ['bar']
216 assert len(x) == 2
217 x.pop()
218 assert x.top == ['foo']
219 x.pop()
220 assert x.top is None
221
222
223class test_LocalManager:

Callers

nothing calls this directly

Calls 3

_FastLocalStackClass · 0.90
pushMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected