@mock.patch(REQUESTS)
def test_request_includes_user_agent_in_header(self, mocked_request, mocked_osm_response):
    mocked_request.return_value = mocked_osm_response
    geocode(something='a')
    assert (mocked_request.call_args[1]['headers'] == {'User-Agent': 'Nesta health data geocode'})
@mock.patch(REQUESTS)
def test_request_includes_user_agent_in_header(self, mocked_request, mocked_osm_response):
    mocked_request.return_value = mocked_osm_response
    geocode(something='a')
    assert (mocked_request.call_args[1]['headers'] == {'User-Agent': 'Nesta health data geocode'})