Salome HOME
Add support for RefAttr attribute, create setCoincedent constraint
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherSetLength.py
index b56650b9e25165d6c092575c584552bb2850fb04..bbbcab6dd90452e3b04a8522b7e9b48d1a6c662f 100644 (file)
@@ -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)