def test_deferredCallback(self):
        filters = [(("ignore", ".*foo.*"), {}),
                   (("ignore", ".*bar.*"), {})]
        result = Deferred()
        self.runWithWarningsSuppressed(filters, lambda: result)
        warnings.warn("ignore foo")
        result.callback(3)
        warnings.warn("ignore foo 2")
        self.assertEqual(
            ["ignore foo 2"], [w['message'] for w in self.flushWarnings()])
Check that C{reason} is a L{Failure} wrapping a L{ConnectionDone}
dataset/ETHPy150Open twisted/twisted/twisted/test/test_iutils.py/DeferredSuppressedWarningsTests.test_deferredCallback--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/stdio_test_loseconn.py/LoseConnChild.connectionLost