Public Member Functions | |
def | assertArc (self, edge, pt1, pt2, direction="CW") |
def | assertCircle (self, edge, pt, r) |
def | assertCoincide (self, pt1, pt2, error=0.0001) |
def | assertCommandEqual (self, c1, c2) |
def | assertConeAt (self, solid, pt, r1, r2, h) |
def | assertCurve (self, edge, p1, p2, p3) |
def | assertCylinderAt (self, solid, pt, r, h) |
def | assertEdgeShapesMatch (self, e1, e2) |
def | assertEqualLocale (self, s1, s2) |
def | assertLine (self, edge, pt1, pt2) |
def | assertLines (self, edgs, tail, points) |
def | assertPlacement (self, p1, p2) |
def | assertPointsMatch (self, pts0, pts1) |
def | assertRoughly (self, f1, f2, error=0.00001) |
Base test class with some additional asserts.
def PathTests.PathTestUtils.PathTestBase.assertArc | ( | self, | |
edge, | |||
pt1, | |||
pt2, | |||
direction = "CW" |
|||
) |
Verify that edge is an arc between pt1 and pt2 with the given direction.
References PathTests.PathTestUtils.PathTestBase.assertCoincide().
Referenced by PathTests.TestPathGeom.TestPathGeom.test20().
def PathTests.PathTestUtils.PathTestBase.assertCircle | ( | self, | |
edge, | |||
pt, | |||
r | |||
) |
Verivy that edge is a circle at given location.
References PathTests.PathTestUtils.PathTestBase.assertCoincide(), and PathTests.PathTestUtils.PathTestBase.assertRoughly().
Referenced by PathTests.PathTestUtils.PathTestBase.assertConeAt(), and PathTests.PathTestUtils.PathTestBase.assertCylinderAt().
def PathTests.PathTestUtils.PathTestBase.assertCoincide | ( | self, | |
pt1, | |||
pt2, | |||
error = 0.0001 |
|||
) |
Verify that two points coincide - roughly speaking.
References PathTests.PathTestUtils.PathTestBase.assertRoughly().
Referenced by PathTests.PathTestUtils.PathTestBase.assertArc(), PathTests.PathTestUtils.PathTestBase.assertCircle(), PathTests.PathTestUtils.PathTestBase.assertCurve(), PathTests.PathTestUtils.PathTestBase.assertEdgeShapesMatch(), PathTests.PathTestUtils.PathTestBase.assertLine(), PathTests.PathTestUtils.PathTestBase.assertPlacement(), PathTests.PathTestUtils.PathTestBase.assertPointsMatch(), PathTests.TestPathDressupHoldingTags.TestHoldingTags.test00(), PathTests.TestPathThreadMillingGenerator.TestPathThreadMillingGenerator.test00(), PathTests.TestPathThreadMillingGenerator.TestPathThreadMillingGenerator.test01(), PathTests.TestPathThreadMillingGenerator.TestPathThreadMillingGenerator.test02(), PathTests.TestPathThreadMillingGenerator.TestPathThreadMillingGenerator.test03(), PathTests.TestPathThreadMillingGenerator.TestPathThreadMillingGenerator.test04(), PathTests.TestPathThreadMillingGenerator.TestPathThreadMillingGenerator.test10(), PathTests.TestPathOpTools.TestPathOpTools.test11(), PathTests.TestPathThreadMillingGenerator.TestPathThreadMillingGenerator.test11(), PathTests.TestPathOpTools.TestPathOpTools.test13(), PathTests.TestPathOpTools.TestPathOpTools.test14(), PathTests.TestPathOpTools.TestPathOpTools.test15(), PathTests.TestPathOpTools.TestPathOpTools.test22(), PathTests.TestPathOpTools.TestPathOpTools.test31(), PathTests.TestPathOpTools.TestPathOpTools.test32(), PathTests.TestPathOpTools.TestPathOpTools.test33(), PathTests.TestPathOpTools.TestPathOpTools.test34(), PathTests.TestPathOpTools.TestPathOpTools.test35(), PathTests.TestPathOpTools.TestPathOpTools.test38(), PathTests.TestPathOpTools.TestPathOpTools.test40(), PathTests.TestPathOpTools.TestPathOpTools.test41(), PathTests.TestPathOpTools.TestPathOpTools.test42(), PathTests.TestPathOpTools.TestPathOpTools.test43(), PathTests.TestPathOpTools.TestPathOpTools.test44(), PathTests.TestPathOpTools.TestPathOpTools.test45(), PathTests.TestPathOpTools.TestPathOpTools.test46(), PathTests.TestPathOpTools.TestPathOpTools.test47(), and PathTests.TestPathGeom.TestPathGeom.test66().
def PathTests.PathTestUtils.PathTestBase.assertCommandEqual | ( | self, | |
c1, | |||
c2 | |||
) |
Verify that the 2 commands are equivalent.
References PathTests.PathTestUtils.PathTestBase.assertRoughly().
Referenced by PathTests.TestPathGeom.TestPathGeom.test40(), and PathTests.TestPathGeom.TestPathGeom.test41().
def PathTests.PathTestUtils.PathTestBase.assertConeAt | ( | self, | |
solid, | |||
pt, | |||
r1, | |||
r2, | |||
h | |||
) |
Verify that solid is a cone at the specified location.
References PathTests.PathTestUtils.PathTestBase.assertCircle(), and PathTests.PathTestUtils.PathTestBase.assertLine().
Referenced by PathTests.TestPathDressupHoldingTags.TestHoldingTags.test02(), PathTests.TestPathDressupHoldingTags.TestHoldingTags.test03(), and PathTests.TestPathDressupHoldingTags.TestHoldingTags.test04().
def PathTests.PathTestUtils.PathTestBase.assertCurve | ( | self, | |
edge, | |||
p1, | |||
p2, | |||
p3 | |||
) |
Verify that the edge goes through the given 3 points, representing start, mid and end point respectively.
References PathTests.PathTestUtils.PathTestBase.assertCoincide().
Referenced by PathTests.TestPathGeom.TestPathGeom.test30(), PathTests.TestPathGeom.TestPathGeom.test60(), PathTests.TestPathGeom.TestPathGeom.test62(), and PathTests.TestPathGeom.TestPathGeom.test65().
def PathTests.PathTestUtils.PathTestBase.assertCylinderAt | ( | self, | |
solid, | |||
pt, | |||
r, | |||
h | |||
) |
Verify that solid is a cylinder at the specified location.
References PathTests.PathTestUtils.PathTestBase.assertCircle(), and PathTests.PathTestUtils.PathTestBase.assertLine().
Referenced by PathTests.TestPathDressupHoldingTags.TestHoldingTags.test01().
def PathTests.PathTestUtils.PathTestBase.assertEdgeShapesMatch | ( | self, | |
e1, | |||
e2 | |||
) |
Verify that 2 edges have the same shape, regardless of orientation.
References PathTests.PathTestUtils.PathTestBase.assertCoincide(), and PathTests.PathTestUtils.PathTestBase.assertRoughly().
Referenced by PathTests.TestPathGeom.TestPathGeom.test70(), PathTests.TestPathGeom.TestPathGeom.test71(), PathTests.TestPathGeom.TestPathGeom.test72(), PathTests.TestPathGeom.TestPathGeom.test73(), PathTests.TestPathGeom.TestPathGeom.test74(), and PathTests.TestPathGeom.TestPathGeom.test75().
def PathTests.PathTestUtils.PathTestBase.assertEqualLocale | ( | self, | |
s1, | |||
s2 | |||
) |
Verify that the 2 strings are equivalent, but converts eventual , into . for the first string that may be affected by locale.
Referenced by PathTests.TestPathSetupSheet.TestPathSetupSheet.test00().
def PathTests.PathTestUtils.PathTestBase.assertLine | ( | self, | |
edge, | |||
pt1, | |||
pt2 | |||
) |
Verify that edge is a line from pt1 to pt2.
References PathTests.PathTestUtils.PathTestBase.assertCoincide().
Referenced by PathTests.PathTestUtils.PathTestBase.assertConeAt(), PathTests.PathTestUtils.PathTestBase.assertCylinderAt(), PathTests.PathTestUtils.PathTestBase.assertLines(), PathTests.TestPathGeom.TestPathGeom.test10(), PathTests.TestPathGeom.TestPathGeom.test50(), and PathTests.TestPathGeom.TestPathGeom.test65().
def PathTests.PathTestUtils.PathTestBase.assertLines | ( | self, | |
edgs, | |||
tail, | |||
points | |||
) |
Verify that the edges match the polygon resulting from points.
References PathTests.PathTestUtils.PathTestBase.assertLine().
Referenced by PathTests.TestPathOpTools.TestPathOpTools.test20(), PathTests.TestPathOpTools.TestPathOpTools.test21(), and PathTests.TestPathOpTools.TestPathOpTools.test22().
def PathTests.PathTestUtils.PathTestBase.assertPlacement | ( | self, | |
p1, | |||
p2 | |||
) |
Verify that two placements are roughly identical.
References PathTests.PathTestUtils.PathTestBase.assertCoincide().
Referenced by PathTests.TestPathStock.TestPathStock.test00(), PathTests.TestPathStock.TestPathStock.test01(), PathTests.TestPathStock.TestPathStock.test10(), and PathTests.TestPathStock.TestPathStock.test11().
def PathTests.PathTestUtils.PathTestBase.assertPointsMatch | ( | self, | |
pts0, | |||
pts1 | |||
) |
Verify that two arrays of points are the same, including their order.
References PathTests.PathTestUtils.PathTestBase.assertCoincide().
Referenced by PathTests.TestPathOpTools.TestPathOpTools.test50(), PathTests.TestPathOpTools.TestPathOpTools.test51(), and PathTests.TestPathOpTools.TestPathOpTools.test52().
def PathTests.PathTestUtils.PathTestBase.assertRoughly | ( | self, | |
f1, | |||
f2, | |||
error = 0.00001 |
|||
) |
Verify that two float values are approximately the same.
Referenced by PathTests.PathTestUtils.PathTestBase.assertCircle(), PathTests.PathTestUtils.PathTestBase.assertCoincide(), PathTests.PathTestUtils.PathTestBase.assertCommandEqual(), PathTests.PathTestUtils.PathTestBase.assertEdgeShapesMatch(), PathTests.TestPathThreadMilling.TestPathThreadMilling.assertList(), PathTests.TestPathThreadMilling.TestPathThreadMilling.assertRadii(), PathTests.TestPathDeburr.TestPathDeburr.test00(), PathTests.TestPathGeom.TestPathGeom.test00(), PathTests.TestPathVcarve.TestPathVcarve.test00(), PathTests.TestPathDeburr.TestPathDeburr.test01(), PathTests.TestPathGeom.TestPathGeom.test01(), PathTests.TestPathHelix.TestPathHelix.test01(), PathTests.TestPathStock.TestPathStock.test01(), PathTests.TestPathToolController.TestPathToolController.test01(), PathTests.TestPathVcarve.TestPathVcarve.test01(), PathTests.TestPathDeburr.TestPathDeburr.test02(), PathTests.TestPathHelix.TestPathHelix.test02(), PathTests.TestPathVcarve.TestPathVcarve.test02(), PathTests.TestPathDeburr.TestPathDeburr.test03(), PathTests.TestPathHelix.TestPathHelix.test03(), PathTests.TestPathVcarve.TestPathVcarve.test03(), PathTests.TestPathHelix.TestPathHelix.test04(), PathTests.TestPathGeom.TestPathGeom.test07(), PathTests.TestPathGeom.TestPathGeom.test08(), PathTests.TestPathVcarve.TestPathVcarve.test10(), PathTests.TestPathOpTools.TestPathOpTools.test11(), PathTests.TestPathStock.TestPathStock.test11(), PathTests.TestPathVcarve.TestPathVcarve.test11(), PathTests.TestPathOpTools.TestPathOpTools.test12(), PathTests.TestPathVcarve.TestPathVcarve.test12(), PathTests.TestPathOpTools.TestPathOpTools.test13(), PathTests.TestPathVcarve.TestPathVcarve.test13(), PathTests.TestPathOpTools.TestPathOpTools.test14(), PathTests.TestPathOpTools.TestPathOpTools.test15(), PathTests.TestPathOpTools.TestPathOpTools.test22(), PathTests.TestPathOpTools.TestPathOpTools.test31(), PathTests.TestPathOpTools.TestPathOpTools.test32(), PathTests.TestPathOpTools.TestPathOpTools.test33(), PathTests.TestPathOpTools.TestPathOpTools.test34(), PathTests.TestPathOpTools.TestPathOpTools.test35(), PathTests.TestPathOpTools.TestPathOpTools.test36(), PathTests.TestPathOpTools.TestPathOpTools.test37(), PathTests.TestPathOpTools.TestPathOpTools.test38(), PathTests.TestPathOpTools.TestPathOpTools.test40(), PathTests.TestPathOpTools.TestPathOpTools.test41(), PathTests.TestPathOpTools.TestPathOpTools.test44(), PathTests.TestPathOpTools.TestPathOpTools.test45(), PathTests.TestPathVoronoi.TestPathVoronoi.test50(), PathTests.TestPathVoronoi.TestPathVoronoi.test51(), PathTests.TestPathVoronoi.TestPathVoronoi.test52(), PathTests.TestPathVoronoi.TestPathVoronoi.test60(), PathTests.TestPathVoronoi.TestPathVoronoi.test61(), PathTests.TestPathVoronoi.TestPathVoronoi.test62(), and PathTests.TestPathGeom.TestPathGeom.test66().