MCPcopy
hub / github.com/celery/celery / test_pickle

Method test_pickle

t/unit/app/test_schedules.py:111–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 assert s1 != s2
110
111 def test_pickle(self):
112 s1 = schedule(10, app=self.app)
113 fun, args = s1.__reduce__()
114 s2 = fun(*args)
115 assert s1 == s2
116
117
118# This is needed for test_crontab_parser because datetime.utcnow doesn't pickle

Callers

nothing calls this directly

Calls 3

scheduleClass · 0.90
funFunction · 0.85
__reduce__Method · 0.45

Tested by

no test coverage detected