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)