#NEWLINE# def metadataParseTest2( ) : #NEWLINE# #INDENT# "\n    Invalid XML.\n\n    >>> doctestFunction1(testMetadataParse, metadataParseTest2())\n    (True, 'ERROR')\n    " #NEWLINE# metadata = '<?xml version="1.0" encoding="UTF-8"?>\n    <foo>\n        <bar>\n            <blah>\n                Test.\n            <blah>\n        </bar>\n    </foo>\n    ' #NEWLINE# ( header , directory , tableData ) = defaultTestData ( header = True , directory = True , tableData = True ) #NEWLINE# compMetadata = zlib . compress ( metadata ) #NEWLINE# header [ 'metaOffset' ] = header [ 'length' ] #NEWLINE# header [ 'metaOrigLength' ] = len ( metadata ) #NEWLINE# header [ 'metaLength' ] = len ( compMetadata ) #NEWLINE# compMetadata += ( '\x00' * calcPaddingLength ( len ( compMetadata ) ) ) #NEWLINE# header [ 'length' ] += len ( compMetadata ) #NEWLINE# return ( ( ( packTestHeader ( header ) + packTestDirectory ( directory ) ) + packTestTableData ( directory , tableData ) ) + compMetadata )