示例#1
0
 def testDccIpStuff(self):
     def randomIP():
         def rand():
             return random.randrange(0, 256)
         return '.'.join(map(str, [rand(), rand(), rand(), rand()]))
     for _ in range(100): # 100 should be good :)
         ip = randomIP()
         self.assertEqual(ip, ircutils.unDccIP(ircutils.dccIP(ip)))
示例#2
0
 def testDccIpStuff(self):
     def randomIP():
         def rand():
             return random.randrange(0, 256)
         return '.'.join(map(str, [rand(), rand(), rand(), rand()]))
     for _ in range(100): # 100 should be good :)
         ip = randomIP()
         self.assertEqual(ip, ircutils.unDccIP(ircutils.dccIP(ip)))