#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_without_reporter_processor( self ) : #NEWLINE# #INDENT# self . runtime_environment . configuration_manager . set ( 'pipelines' , dict ( status = [ { #NEWLINE# #INDENT# 'call-named-any' : dict ( name = 'StringIO.StringIO' , output_path = 'stream' ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'create-statustest-reporter' : dict ( arguments = dict ( stream_path = 'stream' ) ) , #NEWLINE# #UNINDENT# } , 'test-processor' , 'test-processor-success' , { #NEWLINE# #INDENT# 'wait-for-statustest-reporter' : dict ( done = True ) , #NEWLINE# #UNINDENT# } ] ) ) #NEWLINE# self . runtime_environment . configure ( ) #NEWLINE# pgf = processing . ProcessorGraphFactory ( ) #NEWLINE# pgf . configure ( self . runtime_environment ) #NEWLINE# pgf . plugin_manager . _register_plugin ( TestProcessor ) #NEWLINE# pgf . plugin_manager . _register_plugin ( TestProcessorSuccess ) #NEWLINE# evaluators = pgf . make_all_pipelines ( ) #NEWLINE# for evaluator in evaluators . values ( ) : #NEWLINE# #INDENT# evaluator . configure_processors ( self . runtime_environment ) #NEWLINE# #UNINDENT# processed = ( yield evaluators [ 'status' ] . process ( dict ( ) ) ) #NEWLINE# reporter = processed [ 0 ] [ 'reporter' ] #NEWLINE# self . assertEquals ( reporter . testsRun , 7 ) #NEWLINE# self . assertEquals ( pgf . successes , 2 ) #NEWLINE# self . assertEquals ( len ( reporter . failures ) , 1 ) #NEWLINE# self . assertEquals ( len ( reporter . errors ) , 1 ) #NEWLINE# self . assertEquals ( len ( reporter . skips ) , 1 ) #NEWLINE# self . assertEquals ( len ( reporter . expectedFailures ) , 1 ) #NEWLINE# self . assertEquals ( len ( reporter . unexpectedSuccesses ) , 1 )