#NEWLINE# def test_exists_hit_w_alternate_client( self ) : #NEWLINE# #INDENT# PATH = ( 'projects/%s/jobs/%s' % ( self . PROJECT , self . JOB_NAME ) ) #NEWLINE# conn1 = _Connection ( ) #NEWLINE# client1 = _Client ( project = client2 . PROJECT , connection = conn1 ) #NEWLINE# conn2 = _Connection ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# client2 = _Client ( project = self . PROJECT , connection = conn2 ) #NEWLINE# source = _Table ( self . SOURCE_TABLE ) #NEWLINE# destination = _Table ( self . DESTINATION_TABLE ) #NEWLINE# job = self . _makeOne ( self . JOB_NAME , destination , [ source ] , client1 ) #NEWLINE# self . assertTrue ( job . exists ( client = client2 ) ) #NEWLINE# self . assertEqual ( len ( conn1 . _requested ) , 0 ) #NEWLINE# self . assertEqual ( len ( conn2 . _requested ) , 1 ) #NEWLINE# req = conn2 . _requested [ 0 ] #NEWLINE# self . assertEqual ( req [ 'method' ] , 'GET' ) #NEWLINE# self . assertEqual ( req [ 'path' ] , ( '/%s' % PATH ) ) #NEWLINE# self . assertEqual ( req [ 'query_params' ] , { #NEWLINE# #INDENT# 'fields' : 'id' , #NEWLINE# #UNINDENT# } )