def runCheckRoad_getStartAndEndPoint(self): startPoint = arcpy.Point(459835.1, 4192564.56) endPoint = arcpy.Point(460357.8, 4192102.6) checkroadtester2 = CheckRoad(startPoint, endPoint, self.checkRoadInputRoad) startAndEndPnts = checkroadtester2._getRoadStartAndEndPoint() print "start: {}, {}\nend: {}, {}".format(startAndEndPnts[0].X, startAndEndPnts[0].Y, startAndEndPnts[1].X, startAndEndPnts[1].Y)