#NEWLINE# def test_runner_debug( self ) : #NEWLINE# #INDENT# self . parseOptions ( [ '--reporter' , 'capturing' , '--debug' , 'twisted.trial.test.sample' ] ) #NEWLINE# my_runner = self . getRunner ( ) #NEWLINE# debugger = CapturingDebugger ( ) #NEWLINE# def get_debugger( ) : #NEWLINE# #INDENT# return debugger #NEWLINE# #UNINDENT# my_runner . _getDebugger = get_debugger #NEWLINE# loader = runner . TestLoader ( ) #NEWLINE# suite = loader . loadByName ( 'twisted.trial.test.sample' , True ) #NEWLINE# result = my_runner . run ( suite ) #NEWLINE# self . assertEqual ( result . standardReport , result . _calls ) #NEWLINE# self . assertEqual ( [ 'runcall' ] , debugger . _calls )