#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . config = trial . Options ( ) #NEWLINE# parts = reflect . qual ( CapturingReporter ) . split ( '.' ) #NEWLINE# package = '.' . join ( parts [ : ( - 1 ) ] ) #NEWLINE# klass = parts [ ( - 1 ) ] #NEWLINE# plugins = [ twisted_trial . _Reporter ( 'Test Helper Reporter' , package , description = 'Utility for unit testing.' , longOpt = 'capturing' , shortOpt = None , klass = klass ) ] #NEWLINE# def getPlugins( iface , * a , **kw ) : #NEWLINE# #INDENT# self . assertEqual ( iface , IReporter ) #NEWLINE# return ( plugins + list ( self . original ( iface , * a , ** kw ) ) ) #NEWLINE# #UNINDENT# self . original = plugin . getPlugins #NEWLINE# plugin . getPlugins = getPlugins #NEWLINE# self . standardReport = [ 'startTest' , 'addSuccess' , 'stopTest' , 'startTest' , 'addSuccess' , 'stopTest' , 'startTest' , 'addSuccess' , 'stopTest' , 'startTest' , 'addSuccess' , 'stopTest' , 'startTest' , 'addSuccess' , 'stopTest' , 'startTest' , 'addSuccess' , 'stopTest' , 'startTest' , 'addSuccess' , 'stopTest' ]