def testUuid(self): uuid = types.UUID.from_offline_player("KLonter") buff = Buffer() buff.buff = buff.pack_uuid(uuid) self.assertTrue(uuid == buff.unpack_uuid())
def test_pack_uuid(): assert Buffer.pack_uuid(UUID.from_bytes(uuid_vector)) == uuid_vector
def testUuid(self): uuid = types.UUID.from_offline_player("KLonter") buff = Buffer() buff.buff = buff.pack_uuid(uuid) self.assertTrue(uuid == buff.unpack_uuid())