From: spo Date: Tue, 20 Oct 2015 07:36:54 +0000 (+0300) Subject: [PythonAPI] Rename TestModeler.py to TestModel.py X-Git-Tag: V_2.1.0~206^2~87^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b57fe67e7abd49025c088459f4a221b1ade9180d;p=modules%2Fshaper.git [PythonAPI] Rename TestModeler.py to TestModel.py --- diff --git a/src/PythonAPI/Test/TestModel.py b/src/PythonAPI/Test/TestModel.py new file mode 100644 index 000000000..d76377736 --- /dev/null +++ b/src/PythonAPI/Test/TestModel.py @@ -0,0 +1,18 @@ +import unittest +import model + +class ModelTestCase(unittest.TestCase): + def setUp(self): + model.begin() + partset = model.moduleDocument() + self.part = model.addPart(partset).document() + + def tearDown(self): + model.end() + + def test_add_sketch(self): + plane = model.defaultPlane("XOY") + model.addSketch(self.part, plane) + +if __name__ == "__main__": + unittest.main() diff --git a/src/PythonAPI/Test/TestModeler.py b/src/PythonAPI/Test/TestModeler.py deleted file mode 100644 index d76377736..000000000 --- a/src/PythonAPI/Test/TestModeler.py +++ /dev/null @@ -1,18 +0,0 @@ -import unittest -import model - -class ModelTestCase(unittest.TestCase): - def setUp(self): - model.begin() - partset = model.moduleDocument() - self.part = model.addPart(partset).document() - - def tearDown(self): - model.end() - - def test_add_sketch(self): - plane = model.defaultPlane("XOY") - model.addSketch(self.part, plane) - -if __name__ == "__main__": - unittest.main()