#NEWLINE# def test_get_query_params_w_token_and_extra_params( self ) : #NEWLINE# #INDENT# connection = _Connection ( ) #NEWLINE# client = _Client ( connection ) #NEWLINE# PATH = '/foo' #NEWLINE# TOKEN = 'token' #NEWLINE# extra_params = { #NEWLINE# #INDENT# 'key' : 'val' , #NEWLINE# #UNINDENT# } #NEWLINE# iterator = self . _makeOne ( client , PATH , extra_params = extra_params ) #NEWLINE# iterator . next_page_token = TOKEN #NEWLINE# expected_query = extra_params . copy ( ) #NEWLINE# expected_query . update ( { #NEWLINE# #INDENT# 'pageToken' : TOKEN , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( iterator . get_query_params ( ) , expected_query )