Beispiel #1
0
 def test(self):
     """
     Test that the uuid that was packed can be unpacked without being
     changed
     """
     for i in range(1000):
         origUuid = str(uuid.uuid4())
         packedUuid = misc.packUuid(origUuid)
         self.assertEquals(misc.unpackUuid(packedUuid), origUuid)
Beispiel #2
0
 def test(self):
     """
     Test that the uuid that was packed can be unpacked without being
     changed
     """
     for i in range(1000):
         origUuid = str(uuid.uuid4())
         packedUuid = misc.packUuid(origUuid)
         self.assertEquals(misc.unpackUuid(packedUuid), origUuid)