#NEWLINE# def test_run_when_quiet_reports_nothing( self ) : #NEWLINE# #INDENT# step = Step ( 'foo.feature' , 17 , 'Given' , 'given' , 'foo' ) #NEWLINE# match = Mock ( ) #NEWLINE# self . runner . step_registry . find_match . return_value = match #NEWLINE# side_effects = ( None , raiser ( AssertionError ( 'whee' ) ) , raiser ( Exception ( 'whee' ) ) ) #NEWLINE# for side_effect in side_effects : #NEWLINE# #INDENT# match . run . side_effect = side_effect #NEWLINE# step . run ( self . runner , quiet = True ) #NEWLINE# assert ( not self . formatters [ 0 ] . match . called ) #NEWLINE# assert ( not self . formatters [ 0 ] . result . called )