MCPcopy
hub / github.com/celery/celery / test_with_parent

Method test_with_parent

t/unit/tasks/test_result.py:1008–1014  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1006 assert x, result_from_tuple(x == self.app)
1007
1008 def test_with_parent(self):
1009 x = self.app.AsyncResult(uuid())
1010 x.parent = self.app.AsyncResult(uuid())
1011 y = result_from_tuple(x.as_tuple(), self.app)
1012 assert y == x
1013 assert y.parent == x.parent
1014 assert isinstance(y.parent, AsyncResult)
1015
1016 def test_compat(self):
1017 uid = uuid()

Callers

nothing calls this directly

Calls 3

as_tupleMethod · 0.95
result_from_tupleFunction · 0.90
AsyncResultMethod · 0.45

Tested by

no test coverage detected