Salome HOME
Renaming Fill in Split : Read old HDF
[modules/shaper.git] / src / FeaturesPlugin / Test / TestBooleanFuse_SolidsHistory.py
index 7e000ab04eba185a4e523981bef4985e9bfc923c..f081c2d98320b61b9b4168641117ed27f5c0de59 100644 (file)
@@ -1,22 +1,21 @@
-## 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
-## License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-##
-## This library is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-## Lesser General Public License for more details.
-##
-## You should have received a copy of the GNU Lesser General Public
-## License along with this library; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-##
-## See http:##www.salome-platform.org/ or
-## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
-##
+# Copyright (C) 2014-2019  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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
 
 # -*- coding: utf-8 -*-
 
@@ -63,12 +62,12 @@ Part_1_doc.moveFeature(Group_1.feature(), Fuse_1.feature())
 Part_1_doc.moveFeature(Group_2.feature(), Group_1.feature())
 model.end()
 
-# Check group 1: 3 solids
+# All solids are merged to one - result
 aFactory = ModelAPI_Session.get().validators()
 selectionList = Group_1.feature().selectionList("group_list")
-assert(selectionList.size() == 3)
+assert(selectionList.size() == 1)
 assert(aFactory.validate(Group_1.feature()))
-for i in range(3):
+for i in range(1):
   assert(Group_1.groupList().value(i).value().shapeType() == GeomAPI_Shape.SOLID)
 
 # Check group 2: 3 faces