MCPcopy
hub / github.com/celery/celery / test_include_when_enabled

Method test_include_when_enabled

t/unit/worker/test_bootsteps.py:93–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 )
92
93 def test_include_when_enabled(self):
94 x = self.Def(self)
95 x.create = Mock()
96 x.create.return_value = 'George'
97 assert x.include(self)
98
99 assert x.obj == 'George'
100 x.create.assert_called_with(self)
101
102 def test_include_when_disabled(self):
103 x = self.Def(self)

Callers

nothing calls this directly

Calls 1

includeMethod · 0.45

Tested by

no test coverage detected