Extend test and fix to include the admin_role

This commit is contained in:
Wayne Witzel III
2018-04-02 15:37:47 -04:00
parent ea7a0b2f58
commit 067ead35ac
2 changed files with 7 additions and 2 deletions

View File

@@ -61,3 +61,4 @@ def test_org_user_role_attach(user, organization):
access = RoleAccess(admin)
assert not access.can_attach(organization.member_role, nonmember, 'members', None)
assert not access.can_attach(organization.admin_role, nonmember, 'members', None)