Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / ConstructionPlugin / Test / TestPointName.py
1 from ModelAPI import *
2 p = ModelAPI_PluginManager.get()
3 f = p.rootDocument().addFeature("Point")
4 f_name = f.data().name()
5 f.execute()
6
7 doc = p.rootDocument()
8 f1 = doc.object("Construction", 0)
9 f1_name = f1.data().name()
10
11 assert (f_name == f1_name)