MCPcopy
hub / github.com/celery/celery / test_pickleable

Method test_pickleable

t/unit/app/test_exceptions.py:13–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11 assert x.humanize()
12
13 def test_pickleable(self):
14 x = Retry('foo', KeyError(), when=datetime.now(timezone.utc))
15 y = pickle.loads(pickle.dumps(x))
16 assert x.message == y.message
17 assert repr(x.exc) == repr(y.exc)
18 assert x.when == y.when
19
20
21class test_Reject:

Callers

nothing calls this directly

Calls 2

RetryClass · 0.90
nowMethod · 0.45

Tested by

no test coverage detected