def test_non_owner_member_cannot_edit_collection(
    user_owned_collection,
    another_normal_user_client: R2RClient,
    normal_user_client: R2RClient,
):
    """A member who is not the owner should not be able to edit the
    collection."""
    # Add another normal user to the owner's collection
    another_user_id = another_normal_user_client.users.me().results.id
    normal_user_client.collections.add_user(user_owned_collection,
                                            another_user_id)

    # Another normal user tries to update collection
    with pytest.raises(R2RException) as exc_info:
        another_normal_user_client.collections.update(user_owned_collection,
                                                      name="Malicious Update")
    assert exc_info.value.status_code == 403, (
        "Non-owner member should not be able to edit.")
A member who is not the owner should not be able to edit the
    collection.
py/tests/integration/test_collections_users_interaction.py