fix assertPlacement for unit tests

do not explicitly check for angles as they can be quite different for even identical quaternions
This commit is contained in:
wmayer
2018-01-01 17:48:05 +01:00
parent 3afac199d0
commit 1494addfcb

View File

@@ -47,7 +47,7 @@ class PathTestBase(unittest.TestCase):
"""Verify that two placements are roughly identical."""
self.assertCoincide(p1.Base, p2.Base)
self.assertCoincide(p1.Rotation.Axis, p2.Rotation.Axis)
self.assertRoughly(p1.Rotation.Angle, p2.Rotation.Angle)
self.assertTrue(p1.Rotation.isSame(p2.Rotation))
def assertLine(self, edge, pt1, pt2):
"""Verify that edge is a line from pt1 to pt2."""