Salome HOME
Fix tests for constraints Fillet, Horizontal, Length, Parallel, Perpendicular, Rigid...
[modules/shaper.git] / src / PythonAPI / Test / TestSketcherSetHorizontal.py
1 import unittest
2 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()