]> SALOME platform Git repositories - modules/shaper.git/blob - TestSketcherSetHorizontal.py
Salome HOME
68f23d35239befccaad9576426523648fa03f420
[modules/shaper.git] / 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()