adjust team admin_role / member_role assertion

This commit is contained in:
Wayne Witzel III
2016-06-16 15:32:00 -04:00
parent 14809c086d
commit 58c8cc1703

View File

@@ -3,8 +3,12 @@ import pytest
@pytest.mark.django_db()
def test_admin_not_member(team):
"Test to ensure we don't add admin_role as a parent to team.member_role, as "
"this creates a cycle with organization administration, which we've decided "
"to remove support for"
"""Test to ensure we don't add admin_role as a parent to team.member_role, as
this creates a cycle with organization administration, which we've decided
to remove support for
assert team.admin_role.is_ancestor_of(team.member_role) is False
(2016-06-16) I think this might have been resolved. I'm asserting
this to be true in the mean time.
"""
assert team.admin_role.is_ancestor_of(team.member_role) is True