Example #1
0
 def test_assert_standard_is_not_owner(self, mock_relationship):
     user = UserNode()
     task = TaskInst()
     with self.assertRaises(NotOwner):
         user.assert_owner(task)
Example #2
0
 def test_assert_owner_is_owner(self, mock_relationship):
     user = UserNode()
     task = TaskInst()
     user.assert_owner(task)