def METHOD_NAME(app_, method, user, service):
    api_client = NotifyAdminAPIClient()
    api_client.init_app(app_)
    with app_.test_request_context(), app_.test_client() as client:
        client.login(user)
        g.current_service = Service(service)
        with patch.object(api_client, "request") as request:
            ret = getattr(api_client, method)("url", "data")
    assert request.called
    assert ret == request.return_value