'Ensure we return None if both queries fail.'

@patch('homeassistant.util.location.elevation', return_value=0)
@patch('homeassistant.util.location._get_freegeoip', return_value=None)
@patch('homeassistant.util.location._get_ip_api', return_value=None)
def test_detect_location_info_both_queries_fail(self, mock_ipapi, mock_freegeoip, mock_elevation):

    info = location_util.detect_location_info(_test_real=True)
    assert (info is None)
