#NEWLINE# @ responses . activate #NEWLINE# def test_lang_param( self ) : #NEWLINE# #INDENT# responses . add ( responses . GET , 'https://maps.googleapis.com/maps/api/distancematrix/json' , body = '{"status":"OK","rows":[]}' , status = 200 , content_type = 'application/json' ) #NEWLINE# origins = [ 'Vancouver BC' , 'Seattle' ] #NEWLINE# destinations = [ 'San Francisco' , 'Victoria BC' ] #NEWLINE# matrix = self . client . distance_matrix ( origins , destinations , language = 'fr-FR' , mode = 'bicycling' ) #NEWLINE# self . assertEqual ( 1 , len ( responses . calls ) ) #NEWLINE# self . assertURLEqual ( ( 'https://maps.googleapis.com/maps/api/distancematrix/json?key=%s&language=fr-FR&mode=bicycling&origins=Vancouver+BC%%7CSeattle&destinations=San+Francisco%%7CVictoria+BC' % self . key ) , responses . calls [ 0 ] . request . url )