Salome HOME
06795316b46cca26a69f881ea6687ee66117942e
[modules/shaper.git] / test.hdfs / Test2971.py
1 # Copyright (C) 2019-2022  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 if __name__ == "__main__":
21   parts = locals()
22   for key in list(parts.keys()):
23     if key.startswith("Part_"):
24       part = parts[key]
25       model.testNbResults(part, 1)
26       model.testNbSubResults(part, [0])
27       model.testNbSubShapes(part, GeomAPI_Shape.SOLID, [12])
28       model.testNbSubShapes(part, GeomAPI_Shape.FACE, [103])
29       model.testNbSubShapes(part, GeomAPI_Shape.EDGE, [475])
30       model.testNbSubShapes(part, GeomAPI_Shape.VERTEX, [950])
31       model.testResultsVolumes(part, [6487764903.02328777])
32
33   assert(model.checkPythonDump(model.ModelHighAPI.CHECK_NAMING))