X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonAPI%2FTest%2FTestSketcherSetLength.py;h=bbbcab6dd90452e3b04a8522b7e9b48d1a6c662f;hb=d1045f44583d182efaef1a5cfefc251de1b34b62;hp=b56650b9e25165d6c092575c584552bb2850fb04;hpb=1b93f1881c5fec599aa79707f93c84dd9c287bc0;p=modules%2Fshaper.git diff --git a/src/PythonAPI/Test/TestSketcherSetLength.py b/src/PythonAPI/Test/TestSketcherSetLength.py index b56650b9e..bbbcab6dd 100644 --- a/src/PythonAPI/Test/TestSketcherSetLength.py +++ b/src/PythonAPI/Test/TestSketcherSetLength.py @@ -13,8 +13,8 @@ class SketcherSetLength(SketcherTestCase): model.do() # Check the result length = math.sqrt( - math.pow((line.endPointData().x() - line.startPointData().x()), 2) + - math.pow((line.endPointData().y() - line.startPointData().y()), 2) + math.pow((line.endPoint().x() - line.startPoint().x()), 2) + + math.pow((line.endPoint().y() - line.startPoint().y()), 2) ) self.assertAlmostEqual(length, 25.0, delta=TestSketcher.DELTA)