def test_assert_not_owner_ok(self): user = UserNode() has_task = HasTask(super_role=SUPER_ROLE.ADMIN) user.assert_not_owner(has_task)
def test_assert_not_owner_exception(self): user = UserNode() has_task = HasTask(super_role=SUPER_ROLE.OWNER) with self.assertRaises(OwnerCannotChangeInvitation): user.assert_not_owner(has_task)