#NEWLINE# def test_content_raw_element_tag( self ) : #NEWLINE# #INDENT# ' Test the content of raw_element seems decent. ' #NEWLINE# ext_section = '\n        <extension encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n"\n        fieldsEnclosedBy="" ignoreHeaderLines="1" rowType="http://rs.gbif.org/terms/1.0/Description">\n            <files><location>description.txt</location></files>\n            <coreid index="0" />\n            <field index="1" term="http://purl.org/dc/terms/type"/>\n            <field index="2" term="http://purl.org/dc/terms/language"/>\n            <field index="3" term="http://purl.org/dc/terms/description"/>\n        </extension>\n        ' #NEWLINE# ext_descriptor = DataFileDescriptor . make_from_metafile_section ( ET . fromstring ( ext_section ) ) #NEWLINE# self . assertEqual ( ext_section . raw_element . tag , 'extension' ) #NEWLINE# self . assertEqual ( ext_descriptor . raw_element . get ( 'encoding' ) , 'utf-8' ) #NEWLINE# self . assertEqual ( len ( ext_descriptor . raw_element . findall ( 'field' ) ) , 3 )