Salome HOME
Updated copyright comment
[modules/shaper.git] / src / PythonAddons / Test / TestmidSurface_1.py
index 77c56a38d08f25057d6ee7337ad2c4620c5ffc06..0ed5c0e54ab2053bfabfaafebc5079bb0d186f09 100755 (executable)
@@ -28,7 +28,7 @@ def getFilePath(fileName):
     path = os.path.join(os.getenv("SHAPER_ROOT_DIR"), "bin", "salome", "macros", "midSurface")
     return os.path.join(path, fileName)
 
-theFile = getFilePath("midSurface.stp")
+theFile = getFilePath("midSurface_1.stp")
 
 aSession.startOperation("Create part for mid surface")
 aPartFeature = aSession.moduleDocument().addFeature("Part")
@@ -43,10 +43,10 @@ aFile = anImportFeature.string(aFieldName)
 aFile.setValue(theFile)
 aSession.finishOperation()
 
-#for cle in ("Bodies", "Groups", "Construction", "Folders"):
+#for cle in ("Construction", "Bodies", "Groups", "Folders"):
   #print (cle,":",aPart.size(cle))
 
-assert(aPart.size("Bodies") == 8), "Right number of construction: {}".format(aPart.size("Bodies"))
 assert(aPart.size("Construction") == 7), "Right number of construction: {}".format(aPart.size("Construction"))
+assert(aPart.size("Bodies") == 8), "Right number of construction: {}".format(aPart.size("Bodies"))
 assert(aPart.size("Groups") == 2), "Right number of construction: {}".format(aPart.size("Groups"))
 assert(aPart.size("Folders") == 4), "Wrong number of folders: {}".format(aPart.size("Folders"))