]> SALOME platform Git repositories - modules/shaper.git/blob - src/PythonAPI/Test/TestSketcherSetHorizontal.py
Salome HOME
ecb3b4b67a321d4135eb4081e96eccf142449183
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherSetHorizontal.py
1 import unittest
2 from salome.shaper import model
3 from TestSketcher import SketcherTestCase
4
5 class SketcherSetHorizontal(SketcherTestCase):
6     def runTest(self):
7         line = self.sketch.addLine(0, 0, 1, 1)
8         self.sketch.setHorizontal(line)
9         model.do()
10         self.assertEqual(line.startPoint().y(), line.endPoint().y())
11
12 if __name__ == "__main__":
13     unittest.main()