def testModsParserMeta(self): """Get Mods Metadata.""" mods_file = file(mods_file_name) mods_parser = ModsParser(mods_file, 'http://doc.rero.ch') meta = mods_parser.get_metadata() title = meta['title'] ref_title = 'Phylogeography of Populus alba (L.) and Populus tremula '\ '(L.) in Central Europe: secondary contact and hybridisation during '\ 'recolonisation from disconnected refugia' self.assertEqual(title, ref_title, "Metadata has not been "\ "correctly detected '%s' != '%s'" % (title, ref_title))
def testModsParserMeta(self): """Get Mods Metadata.""" mods_file = file(mods_file_name) mods_parser = ModsParser(mods_file, "http://doc.rero.ch") meta = mods_parser.get_metadata() title = meta["title"] ref_title = ( "Phylogeography of Populus alba (L.) and Populus tremula " "(L.) in Central Europe: secondary contact and hybridisation during " "recolonisation from disconnected refugia" ) self.assertEqual( title, ref_title, "Metadata has not been " "correctly detected '%s' != '%s'" % (title, ref_title) )