Salome HOME
Issue #803: Put all the python modules in the same python package newgeom
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherSetEqual.py
index 49656292709c5e2bdb975ae7d76986d4b0c7f5e6..b803cb74faef6fa62866942e2ae63f0ebf6a64a6 100644 (file)
@@ -1,5 +1,5 @@
 import unittest
-import model
+from salome.shaper import model
 import math
 import TestSketcher
 from TestSketcher import SketcherTestCase
@@ -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)