Fixed unit tests for the case where LineOld is not set to false.

This commit is contained in:
Markus Lampert
2017-01-27 21:44:08 -08:00
parent 4d91ed3992
commit bdeeee48b3

View File

@@ -45,7 +45,8 @@ class PathTestBase(unittest.TestCase):
def assertLine(self, edge, pt1, pt2):
"""Verify that edge is a line from pt1 to pt2."""
self.assertIs(type(edge.Curve), Part.Line)
# Depending on the setting of LineOld ....
self.assertTrue(type(edge.Curve) is Part.Line or type(edge.Curve) is Part.LineSegment)
self.assertCoincide(edge.valueAt(edge.FirstParameter), pt1)
self.assertCoincide(edge.valueAt(edge.LastParameter), pt2)