Salome HOME
Dump Python in the High Level Parameterized Geometry API (issue #1648)
[modules/shaper.git] / src / ModelAPI / Test / TestUndoRedo.py
index 1df119f97c26d77e4162708edad5e582ba9892e3..3981f30d4f257df0c4604ce52f1cdb38ceefd727 100644 (file)
@@ -8,6 +8,7 @@ aSession.startOperation()
 aFeature = aDoc.addFeature("Point")\r
 # Since validators are introduced we have to initialize all\r
 # the feature's attributes\r
+# aFeature.string("creation_method").setValue("by_xyz")\r
 aFeature.real("x").setValue(1.)\r
 aFeature.real("y").setValue(-1.)\r
 aFeature.real("z").setValue(0.)\r
@@ -31,3 +32,6 @@ aSession.redo()
 assert(aDoc.size("Construction") == 8)\r
 assert(aSession.canUndo())\r
 assert(not aSession.canRedo())\r
+\r
+import model\r
+assert(model.checkPythonDump())\r