def METHOD_NAME(aggregator, dd_run_check, instance):
    with patch("datadog_checks.unifi_console.check.Unifi.get_clients_info") as mock_get_clients_info:
        check = UnifiConsoleCheck("unifi", {}, [instance])
        mock_get_clients_info.side_effect = Exception()
        with pytest.raises(Exception):
            dd_run_check(check)