#NEWLINE# @ patch ( 'rerun.rerun.get_changed_files' ) #NEWLINE# @ patch ( 'rerun.rerun.act' ) #NEWLINE# @ patch ( 'rerun.rerun.time.sleep' , Mock ( ) ) #NEWLINE# def test_step_passes_first_time_to_act( self , mock_act , mock_changed ) : #NEWLINE# #INDENT# mock_changed . return_value = [ 'mychanges' ] #NEWLINE# options = Mock ( ignore = [ ] ) #NEWLINE# step ( options , first_time = True ) #NEWLINE# self . assertEqual ( mock_act . call_args , call ( [ 'mychanges' ] , options , True ) )