PathTests.PathTestUtils.PathTestBase Class Reference

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)
 

Detailed Description

Base test class with some additional asserts.

Member Function Documentation

◆ assertArc()

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().

◆ assertCircle()

def PathTests.PathTestUtils.PathTestBase.assertCircle (   self,
  edge,
  pt,
  r 
)

◆ assertCoincide()

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().

◆ assertCommandEqual()

def PathTests.PathTestUtils.PathTestBase.assertCommandEqual (   self,
  c1,
  c2 
)

◆ assertConeAt()

def PathTests.PathTestUtils.PathTestBase.assertConeAt (   self,
  solid,
  pt,
  r1,
  r2,
  h 
)

◆ assertCurve()

def PathTests.PathTestUtils.PathTestBase.assertCurve (   self,
  edge,
  p1,
  p2,
  p3 
)

◆ assertCylinderAt()

def PathTests.PathTestUtils.PathTestBase.assertCylinderAt (   self,
  solid,
  pt,
  r,
  h 
)

◆ assertEdgeShapesMatch()

◆ assertEqualLocale()

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().

◆ assertLine()

◆ assertLines()

def PathTests.PathTestUtils.PathTestBase.assertLines (   self,
  edgs,
  tail,
  points 
)

◆ assertPlacement()

def PathTests.PathTestUtils.PathTestBase.assertPlacement (   self,
  p1,
  p2 
)

◆ assertPointsMatch()

def PathTests.PathTestUtils.PathTestBase.assertPointsMatch (   self,
  pts0,
  pts1 
)

◆ assertRoughly()

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().


The documentation for this class was generated from the following file: