Salome HOME
Fix for the issue #2724 : dump with Weak naming selection leads to error
[modules/shaper.git] / src / FeaturesPlugin / Test / TestPartitionSubCompsolidWithCompSolid1.py
index 9b428d6b59a90d3b292214a2be5498ac675d4f1c..73cb83f8194f1d27b6ee02f78e2b1b1cdf3bf595 100644 (file)
@@ -1,4 +1,4 @@
-## Copyright (C) 2018-20xx  CEA/DEN, EDF R&D
+## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
 ##
 ## This library is free software; you can redistribute it and/or
 ## modify it under the terms of the GNU Lesser General Public
@@ -18,6 +18,8 @@
 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
 ##
 
+# -*- coding: utf-8 -*-
+
 from salome.shaper import model
 from GeomAPI import *
 
@@ -45,9 +47,9 @@ model.do()
 
 # check partition
 model.testNbResults(Partition_2, 1)
-model.testNbSubResults(Partition_2, [9])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [9])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [61])
+model.testNbSubResults(Partition_2, [7])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [7])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [53])
 model.testResultsVolumes(Partition_2, [82157.197962046673637814819812775])
 
 # change box height and check partition
@@ -55,8 +57,8 @@ Param_BoxH.setValue(20)
 model.do()
 
 model.testNbResults(Partition_2, 1)
-model.testNbSubResults(Partition_2, [10])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [10])
+model.testNbSubResults(Partition_2, [8])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [8])
 model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [73])
 model.testResultsVolumes(Partition_2, [146157.197962002450367435812950134])
 
@@ -66,9 +68,9 @@ Param_ExtrusionMax.setValue(15)
 model.do()
 
 model.testNbResults(Partition_2, 1)
-model.testNbSubResults(Partition_2, [11])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [11])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [85])
+model.testNbSubResults(Partition_2, [9])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [9])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [93])
 model.testResultsVolumes(Partition_2, [146157.197961971396580338478088379])
 
 # change radius of a circle and check partition
@@ -76,9 +78,9 @@ Param_Radius.setValue(50)
 model.do()
 
 model.testNbResults(Partition_2, 1)
-model.testNbSubResults(Partition_2, [11])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [11])
-model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [82])
+model.testNbSubResults(Partition_2, [9])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.SOLID, [9])
+model.testNbSubShapes(Partition_2, GeomAPI_Shape.FACE, [92])
 model.testResultsVolumes(Partition_2, [156418.581829168775584548711776733])
 
 # check naming