def test_set_sharing_roles(self): from kotti.security import SHARING_ROLES from kotti.security import set_sharing_roles from kotti.security import reset_sharing_roles before = SHARING_ROLES[:] set_sharing_roles(["role:admin"]) assert SHARING_ROLES == ["role:admin"] reset_sharing_roles() assert SHARING_ROLES == before
def test_set_sharing_roles(self): from kotti.security import SHARING_ROLES from kotti.security import set_sharing_roles from kotti.security import reset_sharing_roles before = SHARING_ROLES[:] set_sharing_roles(['role:admin']) assert SHARING_ROLES == ['role:admin'] reset_sharing_roles() assert SHARING_ROLES == before