#NEWLINE# def testLeftoverPendingCalls( self ) : #NEWLINE# #INDENT# '\n        Trial reports a L{util.DirtyReactorAggregateError} and fails the test\n        if a test leaves a L{DelayedCall} hanging.\n        ' #NEWLINE# suite = erroneous . ReactorCleanupTests ( 'test_leftoverPendingCalls' ) #NEWLINE# suite . run ( self . result ) #NEWLINE# self . failIf ( self . result . wasSuccessful ( ) ) #NEWLINE# failure = self . result . errors [ 0 ] [ 1 ] #NEWLINE# self . assertEqual ( self . result . successes , 0 ) #NEWLINE# self . failUnless ( failure . check ( util . DirtyReactorAggregateError ) )