示例#1
0
    def XXXtestMoreThanOneResult(self):
        opac = OpacSearch()
        is_ = opac.getMetadataForISBN('978-0-19-928007-0')
        should_be = [{'authors': [{'firstname': u'Anthony', 'lastname': u'McElligott'}],
  'ddc': [u'G:de', u'S:ge', u'Z:42'],
  'isbn': u'9780199280063: 9780199280070',
  'keywords': [u'Geschichte 1918-1933', u'Weimarer Republik', u'Deutschland'],
  'language': u'Englisch',
  'location': u'Oxford [u.a.]',
  'pages': u'324',
  'publisher': u'Oxford Univ. Press',
  'subtitle': None,
  'title': u'Weimar Germany',
  'year': u'2010'},
 {'authors': [{'firstname': u'Anthony', 'lastname': u'McElligott'}],
  'ddc': [u'G:de', u'S:ge', u'Z:42'],
  'isbn': u'9780199280063: 9780199280070',
  'keywords': [u'Geschichte 1918-1933', u'Weimarer Republik', u'Deutschland'],
  'language': u'EnglischLink ( Inhaltsverzeichnis)',
  'location': u'Oxford [u.a.]',
  'pages': u'324',
  'publisher': u'Oxford Univ. Press',
  'subtitle': None,
  'title': u'Weimar Germany',
  'year': u'2009'}]
        self.assertEquals(should_be, is_)
示例#2
0
 def xtestSuccessfulSearch(self):
     opac = OpacSearch()
     is_ = opac.getMetadataForISBN('3-8272-6194-5')
     should_be = [{'publisher': u'Markt+Technik-Verl.',
         'subtitle': u'Das ZOPE-Buch|Einf\xfchrung und Dokumentation zur Entwicklung von Webanwendungen',
         'location': u'M\xfcnchen/Germany',
         'language': u'Deutsch',
         'title': u'The ZOPE Book <dt.>',
         'ddc': None,
         'isbn': u'3827261945',
         'keywords' : [u'World Wide Web', u'Zope <Programm>', u'Server'],
         'authors': [{'firstname': u'Michel', 'lastname': u'Pelletier'},
            {'firstname': u'Amos', 'lastname': u'Latteier'}],
         'year': u'2002', 'pages': '437'}]
     self.assertEquals(should_be, is_)
示例#3
0
 def testUnsuccessfulSearch(self):
     opac = OpacSearch()
     is_ = opac.getMetadataForISBN('')
     should_be = []
     self.assertEquals(should_be, is_)