#NEWLINE# def test_exposes_extensions_2ext( self ) : #NEWLINE# #INDENT# all_metaxml = '\n        <archive xmlns="http://rs.tdwg.org/dwc/text/" metadata="eml.xml">\n          <core encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1" rowType="http://rs.tdwg.org/dwc/terms/Taxon">\n            <files>\n              <location>taxon.txt</location>\n            </files>\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="3" term="http://rs.tdwg.org/dwc/terms/kingdom"/>\n            <field index="4" term="http://rs.tdwg.org/dwc/terms/phylum"/>\n            <field index="5" term="http://rs.tdwg.org/dwc/terms/genus"/>\n            <field index="6" term="http://rs.tdwg.org/dwc/terms/family"/>\n          </core>\n          <extension encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1" rowType="http://rs.gbif.org/terms/1.0/Description">\n            <files>\n              <location>description.txt</location>\n            </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          <extension encoding="utf-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy="" ignoreHeaderLines="1" rowType="http://rs.gbif.org/terms/1.0/VernacularName">\n            <files>\n              <location>vernacularname.txt</location>\n            </files>\n            <coreid index="0" />\n            <field index="1" term="http://rs.tdwg.org/dwc/terms/countryCode"/>\n            <field index="2" term="http://purl.org/dc/terms/language"/>\n            <field index="3" term="http://rs.tdwg.org/dwc/terms/vernacularName"/>\n          </extension>\n        </archive>\n        ' #NEWLINE# d = ArchiveDescriptor ( all_metaxml ) #NEWLINE# expected_extensions_files = ( 'description.txt' , 'vernacularname.txt' ) #NEWLINE# for ext in d . extensions : #NEWLINE# #INDENT# self . assertTrue ( ( ext . file_location in expected_extensions_files ) ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( d . extensions ) , 2 )