def test_check_qrystr(self):
     """bibmatch - check querystrings"""
     operator = "and"
     qrystr_old = "title||author"
     qrystr_new = "[title] %s [author]" % (operator,)
     querystring = Querystring(operator)
     records = create_records(self.recxml3)
     old_query = querystring.create_query(records[0], qrystr_old)
     new_query = querystring.create_query(records[0], qrystr_new)
     self.assertEqual(old_query, new_query)
Beispiel #2
0
 def test_check_qrystr(self):
     """bibmatch - check querystrings"""
     operator = "and"
     qrystr_old = "title||author"
     qrystr_new = "[title] %s [author]" % (operator, )
     querystring = Querystring(operator)
     records = create_records(self.recxml3)
     old_query = querystring.create_query(records[0], qrystr_old)
     new_query = querystring.create_query(records[0], qrystr_new)
     self.assertEqual(old_query, new_query)