

def testTuuid(self):
    '\n        Test TUUID generation\n        '
    console.terse('{0}\n'.format(self.testTuuid.__doc__))
    tuid = timing.tuuid()
    self.assertEqual(len(tuid), 24)
    (stamp, sep, randomized) = tuid.rpartition('_')
    self.assertEqual(sep, '_')
    self.assertEqual(len(stamp), 16)
    self.assertEqual(len(randomized), 7)
    tuid = timing.tuuid(9)
    self.assertEqual(len(tuid), 24)
    (stamp, sep, randomized) = tuid.rpartition('_')
    self.assertEqual(sep, '_')
    self.assertEqual(len(stamp), 16)
    self.assertEqual(len(randomized), 7)
    self.assertEqual(stamp[:16], '0000000000895440')

dataset/ETHPy150Open ioflo/ioflo/ioflo/aid/test/test_timing.py BasicTestCase.testTuuid/original