def METHOD_NAME(graphql_client, user, grant_factory):
    graphql_client.force_login(user)
    grant = grant_factory(user_id=user.id, status=Grant.Status.pending)
    response = _send_grant_reply(graphql_client, grant, status="refused")
    assert response["data"]["sendGrantReply"]["__typename"] == "SendGrantReplyError"
    assert (
        response["data"]["sendGrantReply"]["message"]
        == "You cannot reply to this grant"
    )