#NEWLINE# def test_creator( self ) : #NEWLINE# #INDENT# xml = '<creator><name vocabulary="DIF">DOC/NOAA/NWS/NCEP</name><contact url="http://www.ncep.noaa.gov/" email="http://www.ncep.noaa.gov/mail_liaison.shtml"/></creator>' #NEWLINE# element = self . _make_element ( xml ) #NEWLINE# md = TDSCatalogMetadata ( element ) . metadata #NEWLINE# assert ( 'creator' in md ) #NEWLINE# assert ( len ( md [ 'creator' ] ) == 1 ) #NEWLINE# assert ( md [ 'creator' ] [ 0 ] [ 'vocabulary' ] == 'DIF' ) #NEWLINE# assert ( md [ 'creator' ] [ 0 ] [ 'name' ] == 'DOC/NOAA/NWS/NCEP' ) #NEWLINE# assert ( md [ 'creator' ] [ 0 ] [ 'url' ] == 'http://www.ncep.noaa.gov/' ) #NEWLINE# assert ( md [ 'creator' ] [ 0 ] [ 'email' ] == 'http://www.ncep.noaa.gov/mail_liaison.shtml' )