#NEWLINE# @ responses . activate #NEWLINE# def test_mixed_params( 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 = [ 'Bobcaygeon ON' , [ 41.43206 , ( - 81.38992 ) ] ] #NEWLINE# destinations = [ ( 43.012486 , ( - 83.6964149 ) ) , { #NEWLINE# #INDENT# 'lat' : 42.8863855 , #NEWLINE# 'lng' : ( - 78.8781627 ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# matrix = self . client . distance_matrix ( origins , destinations ) #NEWLINE# self . assertEqual ( 1 , len ( responses . calls ) ) #NEWLINE# self . assertURLEqual ( ( 'https://maps.googleapis.com/maps/api/distancematrix/json?key=%s&origins=Bobcaygeon+ON%%7C41.43206%%2C-81.38992&destinations=43.012486%%2C-83.696415%%7C42.886386%%2C-78.878163' % self . key ) , responses . calls [ 0 ] . request . url )