#NEWLINE# def test_build_api_url_w_extra_query_params( self ) : #NEWLINE# #INDENT# from six.moves.urllib.parse import parse_qsl #NEWLINE# from six.moves.urllib.parse import urlsplit #NEWLINE# conn = self . _makeOne ( ) #NEWLINE# uri = conn . build_api_url ( '/foo' , { #NEWLINE# #INDENT# 'bar' : 'baz' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( scheme , netloc , path , qs , _ ) = urlsplit ( uri ) #NEWLINE# self . assertEqual ( ( '%s://%s' % ( scheme , netloc ) ) , conn . API_BASE_URL ) #NEWLINE# self . assertEqual ( path , '/' . join ( [ '' , 'bigquery' , conn . API_VERSION , 'foo' ] ) ) #NEWLINE# parms = dict ( parse_qsl ( qs ) ) #NEWLINE# self . assertEqual ( parms [ 'bar' ] , 'baz' )