def METHOD_NAME(instance):
    with patch("datadog_checks.unifi_console.unifi.Unifi._get_json") as mock__get_json, open(
        os.path.join(HERE, "fixtures", "client_metrics.json")
    ) as f:
        data = json.load(f)
        mock__get_json.return_value = data
        config = UnifiConfig(instance)
        api = Unifi(config, MagicMock(), MagicMock())
        clients = api.get_clients_info()
        mock__get_json.assert_called_once_with(APIClientPath.format(config.site))
        assert isinstance(clients, list)
        assert len(clients) == 1