def _testMetadataParse(data, reporter):
    if _shouldSkipMetadataTest(data, reporter):
        return
    metadata = unpackMetadata(data, parse=False)
    try:
        tree = ElementTree.fromstring(metadata)
    except (ExpatError, LookupError):
        reporter.logError(message="The metadata can not be parsed.")
        return True
    reporter.logPass(message="The metadata can be parsed.")
Tests:
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/validate.py/_testMetadataParse