'Test ip api query when the request to API fails.'

@patch('homeassistant.util.location.requests.get', side_effect=requests.RequestException)
def test_ip_api_query_raises(self, mock_get):

    info = location_util._get_ip_api()
    assert (info is None)
