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)
def test_create_pnml(self, parent): pnml = PnmlFactory.create_pnml(Pnml.TAG, parent) assert isinstance(pnml, Pnml)
def test_create_node_graphics(self): pnml = PnmlFactory.create_pnml(PnmlNodeGraphics.TAG, PnmlNode) assert isinstance(pnml, PnmlNodeGraphics)
def test_create_dimension(self): pnml = PnmlFactory.create_pnml(PnmlDimension.TAG, PnmlNodeGraphics) assert isinstance(pnml, PnmlDimension)
def test_create_arc_graphics(self): pnml = PnmlFactory.create_pnml(PnmlArcGraphics.TAG, PnmlArc) assert isinstance(pnml, PnmlArcGraphics)
def test_create_place(self): pnml = PnmlFactory.create_pnml(PnmlPlace.TAG, PnmlPage) assert isinstance(pnml, PnmlPlace)
def test_create_marked_place(self): pnml = PnmlFactory.create_pnml(PnmlMarkedPlace.TAG, PnmlFinalMarking) assert isinstance(pnml, PnmlMarkedPlace)
def test_create_inscription(self, parent): pnml = PnmlFactory.create_pnml(PnmlInscription.TAG, parent) assert isinstance(pnml, PnmlInscription)
def test_create_final_markings(self, parent): pnml = PnmlFactory.create_pnml(PnmlFinalMarkings.TAG, parent) assert isinstance(pnml, PnmlFinalMarkings)
def test_create_init_marking(self, parent): pnml = PnmlFactory.create_pnml(PnmlInitialMarking.TAG, parent) assert isinstance(pnml, PnmlInitialMarking)
def test_create_arc_type(self, parent): pnml = PnmlFactory.create_pnml(PnmlArcType.TAG, parent) assert isinstance(pnml, PnmlArcType)
def test_create_tool_specific(self, parent): pnml = PnmlFactory.create_pnml(PnmlToolSpecific.TAG, parent) assert isinstance(pnml, PnmlToolSpecific)
def test_create_trans(self, parent): pnml = PnmlFactory.create_pnml(PnmlTransition.TAG, parent) assert isinstance(pnml, PnmlTransition)
def test_create_ref_place(self, parent): pnml = PnmlFactory.create_pnml(PnmlReferencePlace.TAG, parent) assert isinstance(pnml, PnmlReferencePlace)