MCPcopy
hub / github.com/celery/celery / test_is_pickled

Method test_is_pickled

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

Source from the content-addressed store, hash-verified

54 assert self.tb.get_result(self.tid) == 42
55
56 def test_is_pickled(self):
57 result = {'foo': 'baz', 'bar': SomeClass(12345)}
58 self.tb.mark_as_done(self.tid, result)
59 # is serialized properly.
60 rindb = self.tb.get_result(self.tid)
61 assert rindb.get('foo') == 'baz'
62 assert rindb.get('bar').data == 12345
63
64 def test_mark_as_failure(self):
65 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