X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonAPI%2FTest%2FTestSketcherSetEqual.py;h=9ffdb877454ca9cff4af5aa104cf8c1e38881412;hb=8f060aedd5949990421a96e3b4086f43efa13d24;hp=49656292709c5e2bdb975ae7d76986d4b0c7f5e6;hpb=868158fe6d39b25e60ac528295b1c908821e4af5;p=modules%2Fshaper.git diff --git a/src/PythonAPI/Test/TestSketcherSetEqual.py b/src/PythonAPI/Test/TestSketcherSetEqual.py index 496562927..9ffdb8774 100644 --- a/src/PythonAPI/Test/TestSketcherSetEqual.py +++ b/src/PythonAPI/Test/TestSketcherSetEqual.py @@ -14,12 +14,12 @@ class SketcherSetEqual(SketcherTestCase): model.do() # Check the result length_1 = math.sqrt( - math.pow((l1.endPointData().x() - l1.startPointData().x()), 2) + - math.pow((l1.endPointData().y() - l1.startPointData().y()), 2) + math.pow((l1.endPoint().x() - l1.startPoint().x()), 2) + + math.pow((l1.endPoint().y() - l1.startPoint().y()), 2) ) length_2 = math.sqrt( - math.pow((l2.endPointData().x() - l2.startPointData().x()), 2) + - math.pow((l2.endPointData().y() - l2.startPointData().y()), 2) + math.pow((l2.endPoint().x() - l2.startPoint().x()), 2) + + math.pow((l2.endPoint().y() - l2.startPoint().y()), 2) ) self.assertAlmostEqual(length_1, length_2, delta=TestSketcher.DELTA)