#NEWLINE# def test_reschedule_job( self , scheduler ) : #NEWLINE# #INDENT# scheduler . modify_job = MagicMock ( ) #NEWLINE# trigger = MagicMock ( get_next_fire_time = ( lambda previous , now : 1 ) ) #NEWLINE# scheduler . _create_trigger = MagicMock ( return_value = trigger ) #NEWLINE# scheduler . reschedule_job ( 'my-id' , 'jobstore' , 'date' , run_date = '2014-06-01 08:41:00' ) #NEWLINE# assert ( scheduler . modify_job . call_count == 1 ) #NEWLINE# assert ( scheduler . modify_job . call_args [ 0 ] == ( 'my-id' , 'jobstore' ) ) #NEWLINE# assert ( scheduler . modify_job . call_args [ 1 ] == { #NEWLINE# #INDENT# 'trigger' : trigger , #NEWLINE# 'next_run_time' : 1 , #NEWLINE# #UNINDENT# } )