Example #1
0
 def test_assert_not_owner_ok(self):
     user = UserNode()
     has_task = HasTask(super_role=SUPER_ROLE.ADMIN)
     user.assert_not_owner(has_task)
Example #2
0
 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)