#NEWLINE# def test_cancel_w_bound_client( self ) : #NEWLINE# #INDENT# PATH = ( 'projects/%s/jobs/%s/cancel' % ( self . PROJECT , self . JOB_NAME ) ) #NEWLINE# RESOURCE = self . _makeResource ( ) #NEWLINE# conn = _Connection ( RESOURCE ) #NEWLINE# client = _Client ( project = self . PROJECT , connection = conn ) #NEWLINE# table = _Table ( ) #NEWLINE# job = self . _makeOne ( table . JOB_NAME , table , [ self . SOURCE1 ] , client ) #NEWLINE# job . cancel ( ) #NEWLINE# self . assertEqual ( len ( conn . _requested ) , 1 ) #NEWLINE# req = conn . _requested [ 0 ] #NEWLINE# self . assertEqual ( req [ 'method' ] , 'POST' ) #NEWLINE# self . assertEqual ( req [ 'path' ] , ( '/%s' % PATH ) ) #NEWLINE# self . _verifyResourceProperties ( job , RESOURCE )