#NEWLINE# def test_delete_w_alternate_client( self ) : #NEWLINE# #INDENT# PATH = ( 'projects/%s/datasets/%s' % ( self . PROJECT , self . DS_NAME ) ) #NEWLINE# conn1 = _Connection ( ) #NEWLINE# CLIENT1 = _Client ( project = self . PROJECT , connection = conn1 ) #NEWLINE# conn2 = _Connection ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# CLIENT2 = _Client ( project = self . PROJECT , connection = conn2 ) #NEWLINE# dataset = self . _makeOne ( self . DS_NAME , client = CLIENT1 ) #NEWLINE# dataset . delete ( 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' ] , 'DELETE' ) #NEWLINE# self . assertEqual ( req [ 'path' ] , ( '/%s' % PATH ) )