def test_chainedPausedDeferredWithResult(self):
        expected = object()
        paused = defer.Deferred()
        paused.callback(expected)
        paused.pause()
        chained = defer.Deferred()
        chained.addCallback(lambda ignored: paused)
        chained.callback(None)

        result = []
        chained.addCallback(result.append)
        self.assertEquals(result, [])
        paused.unpause()
        self.assertEquals(result, [expected])
Test running tasks via the ``runtask`` command.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/DeferredTestCase.test_chainedPausedDeferredWithResult--crossover with--dataset/ETHPy150Open jgorset/django-kronos/kronos/tests/tests.py/TestCase.test_runtask