def testStuff(self): #print self._rdXyResolution startPoint = arcpy.Point(459835.1, 4192564.56) endPoint = arcpy.Point(460357.8, 4192102.6) checkroadtester1 = CheckRoad(startPoint, endPoint, self._checkRoadInputRoad) adjustPointList = checkroadtester1.getAdjustPoints() actualXDist = abs(startPoint.X - adjustPointList[0].X) actualYDist = abs(startPoint.Y - adjustPointList[0].Y) self.assertTrue(abs(startPoint.X - adjustPointList[0].X) < self._rdXyResolution, "start point X compare")
def runCheckRoadAdjustPointsTest(self): startPoint = arcpy.Point(459835.1, 4192564.56) endPoint = arcpy.Point(460357.8, 4192102.6) checkroadtester1 = CheckRoad(startPoint, endPoint, self.checkRoadInputRoad) for point in checkroadtester1.getAdjustPoints(): print point