]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix Test/TestFeaturesExtrusion.py
authordbv <dbv@opencascade.com>
Tue, 14 Jun 2016 10:59:20 +0000 (13:59 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:08 +0000 (14:41 +0300)
src/PythonAPI/Test/TestFeaturesExtrusion.py

index 4b05bd88daac2b8ebee2f48ab1c3f083fbfb3303..0405e58d8adbe28dc20d2046c70d1e2b4dc04d4a 100644 (file)
@@ -65,12 +65,12 @@ class FeaturesAddExtrusionTestCase(FeaturesAddExtrusionFixture):
         base_circle = base_sketch.addCircle(0, 0, 10)
         # to
         to_plane = model.defaultPlane("XOY")
-        to_plane.location().setZ(10)
+        to_plane.origin().setZ(10)
         to_sketch = model.addSketch(self.part, to_plane)
         to_circle = to_sketch.addCircle(0, 0, 10)
         # from
         from_plane = model.defaultPlane("XOY")
-        from_plane.location().setZ(-10)
+        from_plane.origin().setZ(-10)
         from_sketch = model.addSketch(self.part, from_plane)
         from_circle = from_sketch.addCircle(0, 0, 10)
 
@@ -132,12 +132,12 @@ class FeaturesExtrusionTestCase(FeaturesExtrusionFixture):
     def test_extrusion_set_planes_and_offsets(self):
         # to
         to_plane = model.defaultPlane("XOY")
-        to_plane.location().setZ(10)
+        to_plane.origin().setZ(10)
         to_sketch = model.addSketch(self.part, to_plane)
         to_circle = to_sketch.addCircle(0, 0, 10)
         # from
         from_plane = model.defaultPlane("XOY")
-        from_plane.location().setZ(-10)
+        from_plane.origin().setZ(-10)
         from_sketch = model.addSketch(self.part, from_plane)
         from_circle = from_sketch.addCircle(0, 0, 10)