Salome HOME
Copyright update 2022
[modules/shaper.git] / src / SketchPlugin / Test / Test2376.py
index 98fd0413c89eb00874f2785cfe4fe7964508e6fa..6c340a75947949168ed6161ec8d56d91d56a9d95 100644 (file)
@@ -1,22 +1,21 @@
-## Copyright (C) 2018-20xx  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) 2018-2022  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
+#
 
 """
     Test2376.py
@@ -42,9 +41,7 @@ model.checkSketch(Sketch_1, SKETCH_DOF)
 # add one more distance constraint, DoF should be the same
 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_2.result(), 25, True)
 model.do()
-model.checkSketch(Sketch_1, SKETCH_DOF)
-# TODO: following line should be uncommented when PlanGCS will be able to determine over-constraint in this case
-#assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
+assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
 
 # remove last constraint
 partSet.removeFeature(SketchConstraintDistance_2.feature())