def testDistance(self):
        
        # testList holds a couple 3-tuple (variable1, variable2, result)
        basicTestList = [('123456789','123456789', 0L), ('12345', '98765', 34527773184L)]

        for test in basicTestList:
            result = self.routingTable.distance(test[0], test[1])
            self.failIf(result != test[2], 'Result of _distance() should be %s but %s returned' % (test[2], result))

        baseIp = '146.64.19.111'
        ipTestList = ['146.64.29.222', '192.68.19.333']

        distanceOne = self.routingTable.distance(baseIp, ipTestList[0])
        distanceTwo = self.routingTable.distance(baseIp, ipTestList[1])

        self.failIf(distanceOne > distanceTwo, '%s should be closer to the base ip %s than %s' % (ipTestList[0], baseIp, ipTestList[1]))
Generates the source file.
dataset/ETHPy150Open lbryio/lbry/tests/dht/testRoutingTable.py/TreeRoutingTableTest.testDistance--crossover with--dataset/ETHPy150Open libyal/libyal/scripts/source-generate.py/SourceFileGenerator.Generate