#NEWLINE# def test_headers_unordered( self ) : #NEWLINE# #INDENT# metaxml_section = '\n        <core encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy=""\n        ignoreHeaderLines="1" rowType="http://rs.tdwg.org/dwc/terms/Taxon">\n            <files>\n                <location>taxon.txt</location>\n            </files>\n            <field index="4" term="http://rs.tdwg.org/dwc/terms/phylum"/>\n            <id index="0" />\n            <field index="1" term="http://rs.tdwg.org/dwc/terms/order"/>\n            <field index="2" term="http://rs.tdwg.org/dwc/terms/class"/>\n            <field index="6" term="http://rs.tdwg.org/dwc/terms/family"/>\n            <field index="3" term="http://rs.tdwg.org/dwc/terms/kingdom"/>\n            <field index="5" term="http://rs.tdwg.org/dwc/terms/genus"/>\n        </core>\n        ' #NEWLINE# core_descriptor = DataFileDescriptor . make_from_metafile_section ( ET . fromstring ( metaxml_section ) ) #NEWLINE# expected_headers_core = [ 'id' , 'http://rs.tdwg.org/dwc/terms/order' , 'http://rs.tdwg.org/dwc/terms/class' , 'http://rs.tdwg.org/dwc/terms/kingdom' , 'http://rs.tdwg.org/dwc/terms/phylum' , 'http://rs.tdwg.org/dwc/terms/genus' , 'http://rs.tdwg.org/dwc/terms/family' ] #NEWLINE# self . assertEqual ( core_descriptor . headers , core_descriptor )