def METHOD_NAME(user_api_client, warehouse):
    # given
    warehouse_id = graphene.Node.to_global_id("Warehouse", warehouse.pk)
    # when
    response = user_api_client.post_graphql(
        QUERY_WAREHOUSE,
        variables={"id": warehouse_id},
    )
    # then
    assert_no_permission(response)