@responses.activate
def test_url_signed(self):
    responses.add(responses.GET, 'https://maps.googleapis.com/maps/api/geocode/json', body='{"status":"OK","results":[]}', status=200, content_type='application/json')
    client = googlemaps.Client(client_id='foo', client_secret='a2V5')
    client.geocode('Sesame St.')
    self.assertEqual(1, len(responses.calls))
    self.assertIn('address=Sesame+St.&client=foo&signature', responses.calls[0].request.url)
    self.assertURLEqual('https://maps.googleapis.com/maps/api/geocode/json?address=Sesame+St.&client=foo&EXAMPLE_KEY', responses.calls[0].request.url)
@responses.activate
def test_url_signed(self):
    responses.add(responses.GET, 'https://maps.googleapis.com/maps/api/geocode/json', body='{"status":"OK","results":[]}', status=200, content_type='application/json')
    client = googlemaps.Client(client_id='foo', client_secret='a2V5')
    client.geocode('Sesame St.')
    self.assertEqual(1, len(responses.calls))
    self.assertIn('address=Sesame+St.&client=foo&signature', responses.calls[0].request.url)
    self.assertURLEqual('https://maps.googleapis.com/maps/api/geocode/json?address=Sesame+St.&client=foo&EXAMPLE_KEY', responses.calls[0].request.url)