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

Method test_is_pickled

t/unit/backends/test_cache.py:57–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 assert self.tb.get_result(self.tid) == 42
56
57 def test_is_pickled(self):
58 result = {'foo': 'baz', 'bar': SomeClass(12345)}
59 self.tb.mark_as_done(self.tid, result)
60 # is serialized properly.
61 rindb = self.tb.get_result(self.tid)
62 assert rindb.get('foo') == 'baz'
63 assert rindb.get('bar').data == 12345
64
65 def test_mark_as_failure(self):
66 try:

Callers

nothing calls this directly

Calls 4

mark_as_doneMethod · 0.80
get_resultMethod · 0.80
SomeClassClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected