5 from TestSketcher import SketcherTestCase
7 class SketcherSetLength(SketcherTestCase):
10 line = self.sketch.addLine(0, 0, 0, 1)
11 self.sketch.setLength(line.result(), 25.0)
12 # Commit the transaction
16 math.pow((line.endPointData().x() - line.startPointData().x()), 2) +
17 math.pow((line.endPointData().y() - line.startPointData().y()), 2)
19 self.assertAlmostEqual(length, 25.0, delta=TestSketcher.DELTA)
21 if __name__ == "__main__":