def metadataParseTest1():
    metadata = """<?xml version="1.0" encoding="UTF-8"?>
    <foo>
        <bar>
            Test.
        </bar>
    </foo>
    """
    header, directory, tableData = defaultTestData(header=True, directory=True, tableData=True)
    compMetadata = zlib.compress(metadata)
    header["metaOffset"] = header["length"]
    header["metaOrigLength"] = len(metadata)
    header["metaLength"] = len(compMetadata)
    compMetadata += "\0" * calcPaddingLength(len(compMetadata))
    header["length"] += len(compMetadata)
    return packTestHeader(header) + packTestDirectory(directory) + packTestTableData(directory, tableData) + compMetadata
Initialize the data object.
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/test/test_validate.py/metadataParseTest1--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/arest.py/ArestData.__init__