Salome HOME
#1707 Fatal error when Recover box
[modules/shaper.git] / src / FeaturesPlugin / Test / TestPartition.py
index c90a2908273493936bc583d413e9d860403a5614..dbc14ed948dbd49706de3997e97ee3d9f6f9cf84 100644 (file)
@@ -80,7 +80,8 @@ assert (anExtrusionResult is not None)
 #=========================================================================
 aSession.startOperation()
 aPlaneFeature = aPart.addFeature("Plane")
-aPlaneFeature.string("CreationMethod").setValue("PlaneByGeneralEquation")
+aPlaneFeature.string("creation_method").setValue("by_general_equation")
+aPlaneFeature.string("by_other_plane_option").setValue("by_distance_from_other") # TODO: remove
 aPlaneFeature.real("A").setValue(0.)
 aPlaneFeature.real("B").setValue(1.)
 aPlaneFeature.real("C").setValue(0.)
@@ -128,3 +129,6 @@ assert (aFactory.validate(aPartitionFt))
 assert (len(aPartitionFt.results()) > 0)
 aPartitionResult = modelAPI_ResultBody(aPartitionFt.firstResult())
 assert (aPartitionResult is not None)
+
+import model
+assert(model.checkPythonDump())