#NEWLINE# def test_cancelation_completed( self ) : #NEWLINE# #INDENT# 'Establish that a standard cancelation command works in the way\n        we expect.\n        ' #NEWLINE# with client . test_mode as t : #NEWLINE# #INDENT# t . register ( '/jobs/42/cancel/' , '' , method = 'POST' , status_code = 405 ) #NEWLINE# result = self . res . cancel ( 42 ) #NEWLINE# self . assertTrue ( t . requests [ 0 ] . url . endswith ( '/jobs/42/cancel/' ) ) #NEWLINE# self . assertFalse ( result [ 'changed' ] )