#NEWLINE# def test_exposes_extensions_type( self ) : #NEWLINE# #INDENT# vn = 'http://rs.gbif.org/terms/1.0/VernacularName' #NEWLINE# td = 'http://rs.gbif.org/terms/1.0/Description' #NEWLINE# with DwCAReader ( BASIC_ARCHIVE_PATH ) as dwca : #NEWLINE# #INDENT# descriptor = dwca . descriptor #NEWLINE# self . assertEqual ( [ ] , descriptor . extensions_type ) #NEWLINE# #UNINDENT# with DwCAReader ( EXTENSION_ARCHIVE_PATH ) as dwca : #NEWLINE# #INDENT# descriptor = dwca . descriptor #NEWLINE# self . assertEqual ( descriptor . extensions_type [ 0 ] , vn ) #NEWLINE# self . assertEqual ( 1 , len ( descriptor . extensions_type ) ) #NEWLINE# #UNINDENT# with DwCAReader ( MULTIEXTENSIONS_ARCHIVE_PATH ) as dwca : #NEWLINE# #INDENT# descriptor = descriptor . descriptor #NEWLINE# self . assertEqual ( 2 , len ( descriptor . extensions_type ) ) #NEWLINE# supposed_extensions = frozenset ( [ vn , td ] ) #NEWLINE# self . assertEqual ( supposed_extensions , frozenset ( descriptor . extensions_type ) )