changed way of checking exception message in loft wire checking unit test to increase code coverage

This commit is contained in:
Hatatister
2019-08-11 20:42:36 +02:00
parent c00a01b3c7
commit 04721c5b8a

View File

@ -261,11 +261,10 @@ class TestCadQuery(BaseTest):
def testLoftWithOneWireRaisesValueError(self):
s = Workplane("XY").circle(5)
try:
with self.assertRaises(ValueError) as cm:
s.loft()
self.assertFail()
except ValueError as e:
self.assertEqual(str(e), "More than one wire is required")
err = cm.exception
self.assertEqual(str(err), "More than one wire is required")
def testLoftCombine(self):