MCPcopy
hub / github.com/celery/celery / test_boundmethod

Method test_boundmethod

t/unit/utils/test_dispatcher.py:175–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 self._testIsClean(a_signal)
174
175 def test_boundmethod(self):
176 a = Callable()
177 a_signal.connect(a.a, sender=self)
178 expected = [(a.a, 'test')]
179 garbage_collect()
180 result = a_signal.send(sender=self, val='test')
181 assert result == expected
182 del a, result, expected
183 garbage_collect()
184 self._testIsClean(a_signal)
185
186 def test_disconnect_retryable_decorator(self):
187 # Regression test for https://github.com/celery/celery/issues/9119

Callers

nothing calls this directly

Calls 5

_testIsCleanMethod · 0.95
garbage_collectFunction · 0.85
CallableClass · 0.70
connectMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected