Exemplo n.º 1
0
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())
Exemplo n.º 2
0
 def setUp(self):
     # Pathable is abstract and should not be instantiated. 
     self.parent = u'parent'
     self.pathable1 = Pathable()
     self.pathable2 = Pathable(self.parent)
Exemplo n.º 3
0
 def __init__(self,cstate,trans,cfs):
     Pathable.__init__(self)
     self.currentState=cstate
     self.transition=trans
     self.careflowStep=cfs
Exemplo n.º 4
0
 def __init__(self,inst,actid,wfd, parent=None):
     Pathable.__init__(self, parent)
     self.instructionId=inst
     self.activityId=actid
     self.wfDetails=wfd
     self.activityPathValid()