Ejemplo n.º 1
0
    def test_create_annot_graphics(self):
        # 4 possible parent classes
        pnml = PnmlFactory.create_pnml(PnmlAnnotationGraphics.TAG, PnmlArcType)
        assert isinstance(pnml, PnmlAnnotationGraphics)

        pnml = PnmlFactory.create_pnml(PnmlAnnotationGraphics.TAG, PnmlInitialMarking)
        assert isinstance(pnml, PnmlAnnotationGraphics)

        pnml = PnmlFactory.create_pnml(PnmlAnnotationGraphics.TAG, PnmlInscription)
        assert isinstance(pnml, PnmlAnnotationGraphics)

        pnml = PnmlFactory.create_pnml(PnmlAnnotationGraphics.TAG, PnmlName)
        assert isinstance(pnml, PnmlAnnotationGraphics)
Ejemplo n.º 2
0
 def test_create_pnml(self, parent):
     pnml = PnmlFactory.create_pnml(Pnml.TAG, parent)
     assert isinstance(pnml, Pnml)
Ejemplo n.º 3
0
 def test_create_node_graphics(self):
     pnml = PnmlFactory.create_pnml(PnmlNodeGraphics.TAG, PnmlNode)
     assert isinstance(pnml, PnmlNodeGraphics)
Ejemplo n.º 4
0
 def test_create_dimension(self):
     pnml = PnmlFactory.create_pnml(PnmlDimension.TAG, PnmlNodeGraphics)
     assert isinstance(pnml, PnmlDimension)
Ejemplo n.º 5
0
 def test_create_arc_graphics(self):
     pnml = PnmlFactory.create_pnml(PnmlArcGraphics.TAG, PnmlArc)
     assert isinstance(pnml, PnmlArcGraphics)
Ejemplo n.º 6
0
 def test_create_place(self):
     pnml = PnmlFactory.create_pnml(PnmlPlace.TAG, PnmlPage)
     assert isinstance(pnml, PnmlPlace)
Ejemplo n.º 7
0
 def test_create_marked_place(self):
     pnml = PnmlFactory.create_pnml(PnmlMarkedPlace.TAG, PnmlFinalMarking)
     assert isinstance(pnml, PnmlMarkedPlace)
Ejemplo n.º 8
0
 def test_create_inscription(self, parent):
     pnml = PnmlFactory.create_pnml(PnmlInscription.TAG, parent)
     assert isinstance(pnml, PnmlInscription)
Ejemplo n.º 9
0
 def test_create_final_markings(self, parent):
     pnml = PnmlFactory.create_pnml(PnmlFinalMarkings.TAG, parent)
     assert isinstance(pnml, PnmlFinalMarkings)
Ejemplo n.º 10
0
 def test_create_init_marking(self, parent):
     pnml = PnmlFactory.create_pnml(PnmlInitialMarking.TAG, parent)
     assert isinstance(pnml, PnmlInitialMarking)
Ejemplo n.º 11
0
 def test_create_arc_type(self, parent):
     pnml = PnmlFactory.create_pnml(PnmlArcType.TAG, parent)
     assert isinstance(pnml, PnmlArcType)
Ejemplo n.º 12
0
 def test_create_tool_specific(self, parent):
     pnml = PnmlFactory.create_pnml(PnmlToolSpecific.TAG, parent)
     assert isinstance(pnml, PnmlToolSpecific)
Ejemplo n.º 13
0
 def test_create_trans(self, parent):
     pnml = PnmlFactory.create_pnml(PnmlTransition.TAG, parent)
     assert isinstance(pnml, PnmlTransition)
Ejemplo n.º 14
0
 def test_create_ref_place(self, parent):
     pnml = PnmlFactory.create_pnml(PnmlReferencePlace.TAG, parent)
     assert isinstance(pnml, PnmlReferencePlace)