def METHOD_NAME(instance):
    with patch("datadog_checks.unifi_console.unifi.Unifi._get_json") as mock__get_json, open(
        os.path.join(HERE, "fixtures", "status_valid.json")
    ) as f:
        mock__get_json.return_value = json.load(f)
        config = UnifiConfig(instance)
        api = Unifi(config, MagicMock(), MagicMock())
        status = api.status()
        mock__get_json.assert_called_once_with(APIStatusPath)
        assert type(status) is ControllerInfo
        assert status.up is True