#NEWLINE# def test_scheduled_job( self , scheduler ) : #NEWLINE# #INDENT# def func( x , y ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# scheduler . add_job = MagicMock ( ) #NEWLINE# decorator = scheduler . scheduled_job ( 'date' , [ 1 ] , { #NEWLINE# #INDENT# 'y' : 2 , #NEWLINE# #UNINDENT# } , 'my-id' , 'dummy' , run_date = '2014-06-01 08:41:00' ) #NEWLINE# decorator ( func ) #NEWLINE# scheduler . add_job . assert_called_once_with ( func , 'date' , [ 1 ] , { #NEWLINE# #INDENT# 'y' : 2 , #NEWLINE# #UNINDENT# } , 'my-id' , 'dummy' , undefined , undefined , undefined , undefined , 'default' , 'default' , True , run_date = '2014-06-01 08:41:00' )