MCPcopy
hub / github.com/celery/celery / test_impossible

Method test_impossible

t/unit/backends/test_base.py:332–339  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

330 assert isinstance(y, objectexception.Nested)
331
332 def test_impossible(self):
333 self.b.serializer = 'pickle'
334 x = self.b.prepare_exception(Impossible())
335 assert isinstance(x, UnpickleableExceptionWrapper)
336 assert str(x)
337 y = self.b.exception_to_python(x)
338 assert y.__class__.__name__ == 'Impossible'
339 assert y.__class__.__module__ == 'foo.module'
340
341 def test_regular(self):
342 self.b.serializer = 'pickle'

Callers

nothing calls this directly

Calls 2

prepare_exceptionMethod · 0.80
exception_to_pythonMethod · 0.80

Tested by

no test coverage detected