@responses.activate
def test_host_override(self):
    responses.add(responses.GET, 'https://foo.com/bar', body='{"status":"OK","results":[]}', status=200, content_type='application/json')
    client = googlemaps.Client(key='AIzaasdf')
    client._get('/bar', {}, base_url='https://foo.com')
    self.assertEqual(1, len(responses.calls))
@responses.activate
def test_host_override(self):
    responses.add(responses.GET, 'https://foo.com/bar', body='{"status":"OK","results":[]}', status=200, content_type='application/json')
    client = googlemaps.Client(key='AIzaasdf')
    client._get('/bar', {}, base_url='https://foo.com')
    self.assertEqual(1, len(responses.calls))