#NEWLINE# def test_run_invokes_formatter_scenario_and_steps_correctly( self ) : #NEWLINE# #INDENT# self . config . stdout_capture = False #NEWLINE# self . config . log_capture = False #NEWLINE# self . config . tags . check . return_value = True #NEWLINE# steps = [ Mock ( ) , Mock ( ) ] #NEWLINE# scenario = Scenario ( 'foo.feature' , 17 , 'Scenario' , 'foo' , steps = steps ) #NEWLINE# scenario . run ( self . runner ) #NEWLINE# self . formatters [ 0 ] . scenario . assert_called_with ( scenario ) #NEWLINE# for step in steps : #NEWLINE# #INDENT# step . run . assert_called_with ( self . runner )