]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Rename setSize to setSizes for Extrusion
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 26 Oct 2015 13:44:51 +0000 (16:44 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 26 Oct 2015 13:44:51 +0000 (16:44 +0300)
src/PythonAPI/Test/TestFeaturesExtrusion.py
src/PythonAPI/model/extrusion.py

index 46e6b31fe908c3b330b1bf27bb23bd6debd36f22..7c11dfbe18a968ee224b6f2278d3865eb209c2f2 100644 (file)
@@ -127,7 +127,7 @@ class FeaturesExtrusionTestCase(FeaturesExtrusionFixture):
                                    ModelAPI.ModelAPI_AttributeDouble))
 
     def test_extrusion_set_sizes(self):
-        self.extrusion.setSize(15, 20)
+        self.extrusion.setSizes(15, 20)
         self.assertEqual(self.extrusion.getCreationMethod().value(), "BySizes")
         self.assertEqual(self.extrusion.getToSize().value(), 15)
         self.assertEqual(self.extrusion.getFromSize().value(), 20)
index 88ab847114f523abe34558cd6936a26015a14a63..a6049314505b6e6ca668536764b9845752c46279 100644 (file)
@@ -116,7 +116,7 @@ class Extrusion(Interface):
         self.__execute()
         pass
 
-    def setSize(self, *args):
+    def setSizes(self, *args):
         """Modify the to_size, from_size attributes of the feature.
 
         See __init__.