#NEWLINE# def test_abort_not_active_job( self ) : #NEWLINE# #INDENT# job_doc = { #NEWLINE# #INDENT# 'job_schedule' : { #NEWLINE# #INDENT# 'status' : 'whatever' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# job = v1_jobs . Job ( job_doc ) #NEWLINE# res = job . abort ( ) #NEWLINE# self . assertEquals ( res , 'already stopped' ) #NEWLINE# self . assertFalse ( job . need_update )