@withActionContext
    def test_addCallbacksErrbackResult(self):
        exception = ZeroDivisionError()
        d = fail(exception)
        d = DeferredContext(d)
        d.addCallbacks(lambda x: x, lambda x: [x.value, 1])
        self.assertEqual(self.successResultOf(d), [exception, 1])
Return a modified parse tree for the contents of the given file.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_twisted.py/DeferredContextTests.test_addCallbacksErrbackResult--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/compiler/transformer.py/Transformer.parsefile