def METHOD_NAME(graphql_client, user, grant_factory):
    graphql_client.force_login(user)
    grant = grant_factory(user_id=user.id, status=Grant.Status.waiting_for_confirmation)
    response = _send_grant_reply(graphql_client, grant, status="refused")
    assert response["data"]["sendGrantReply"]["__typename"] == "Grant"
    grant.refresh_from_db()
    assert grant.status == Grant.Status.refused