def test_non_member_cannot_view_collection(normal_user_client,
                                           superuser_owned_collection):
    """A normal user (not a member of a superuser-owned collection) tries to
    view it."""
    # The normal user is not added to the superuser collection, should fail
    with pytest.raises(R2RException) as exc_info:
        normal_user_client.collections.retrieve(superuser_owned_collection)
    assert exc_info.value.status_code == 403, (
        "Non-member should not be able to view collection.")
A normal user (not a member of a superuser-owned collection) tries to
    view it.
py/tests/integration/test_collections_users_interaction.py