コード例 #1
0
ファイル: common.py プロジェクト: grodniewicz/oship
class PathableTest(unittest.TestCase):

    def setUp(self):
        # Pathable is abstract and should not be instantiated. 
        self.parent = u'parent'
        self.pathable1 = Pathable()
        self.pathable2 = Pathable(self.parent)

    def tearDown(self):
        pass

    def testParentMethod(self):
        self.assertEqual(None, self.pathable1.parent())
        self.assertEqual(self.parent, self.pathable2.parent())
コード例 #2
0
ファイル: common.py プロジェクト: grodniewicz/oship
 def setUp(self):
     # Pathable is abstract and should not be instantiated. 
     self.parent = u'parent'
     self.pathable1 = Pathable()
     self.pathable2 = Pathable(self.parent)
コード例 #3
0
ファイル: __init__.py プロジェクト: grodniewicz/oship
 def __init__(self,cstate,trans,cfs):
     Pathable.__init__(self)
     self.currentState=cstate
     self.transition=trans
     self.careflowStep=cfs
コード例 #4
0
ファイル: __init__.py プロジェクト: grodniewicz/oship
 def __init__(self,inst,actid,wfd, parent=None):
     Pathable.__init__(self, parent)
     self.instructionId=inst
     self.activityId=actid
     self.wfDetails=wfd
     self.activityPathValid()