Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesPlugin / Test / TestCopyMoveResult.py
index bde1d85c1fbc9c4ff62418388904e0923b03ec90..1423c0c669426af41503006cf71cdd0a5d85f761 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -48,7 +48,7 @@ Extrusion_1.result().setName("Origin")
 Group_1 = model.addGroup(Part_1_doc, "Solids", [model.selection("SOLID", "Extrusion_1_1_1")])
 Copy_1 = model.addCopy(Part_1_doc, [model.selection("COMPSOLID", "Origin")], 1)
 Copy_1.result().setName("Origin_1")
-Fillet_1 = model.addFillet(Part_1_doc, [model.selection("EDGE", "[Origin_1_1/Copy_3][Origin_1_1/Copy_7]"), model.selection("EDGE", "[Origin_1_1/Copy_12][Origin_1_1/Copy_14]")], 2)
+Fillet_1 = model.addFillet(Part_1_doc, [model.selection("EDGE", "[Origin_1_1/Copy_2][Origin_1_1/Copy_6]"), model.selection("EDGE", "[Origin_1_2/Copy_4][Origin_1_2/Copy_6]")], 2)
 Fillet_1.result().setName("CopyCompound")
 model.do()
 # move the group feature to the end - through copy and fillet on this copy (to distinguish the origin and the copy)
@@ -59,8 +59,9 @@ from ModelAPI import *
 aFactory = ModelAPI_Session.get().validators()
 assert(aFactory.validate(Group_1.feature()))
 selectionList = Group_1.feature().selectionList("group_list")
-assert(selectionList.size() == 1) # still the same solid
+assert(selectionList.size() == 2) # still the same solid + the copied and filleted
 
-assert(selectionList.value(0).namingName() == "Fillet_1_1_1")
+assert(selectionList.value(0).namingName() == "Extrusion_1_1_1")
+assert(selectionList.value(1).namingName() == "Fillet_1_1_1")
 
 assert(model.checkPythonDump())