#NEWLINE# def test_run_should_fail_when_last_examples_fails( self ) : #NEWLINE# #INDENT# outline = ScenarioOutline ( 'foo.feature' , 17 , 'Scenario Outline' , 'foo' ) #NEWLINE# failed = True #NEWLINE# outline . _scenarios = [ Mock ( ) , Mock ( ) ] #NEWLINE# outline . _scenarios [ 0 ] . run . return_value = ( not failed ) #NEWLINE# outline . _scenarios [ 1 ] . run . return_value = failed #NEWLINE# runner = Mock ( ) #NEWLINE# context = runner . context = Mock ( ) #NEWLINE# config = runner . config = Mock ( ) #NEWLINE# config . stop = True #NEWLINE# resultFailed = outline . run ( runner ) #NEWLINE# eq_ ( resultFailed , True )