Exemplo n.º 1
0
 def test_read_pagination(self):
     data = [
         ('xx, 1065 , [57] p.', 1065),
         ('193 p., 31 p. of plates', 193),
     ]
     for (value, expect) in data:
         rec = MockRecord('300', [('a', value)])
         output = read_pagination(rec)
         self.assertEqual(output['number_of_pages'], expect)
         self.assertEqual(output['pagination'], value)
Exemplo n.º 2
0
 def test_read_pagination(self):
     data = [
         ("xx, 1065 , [57] p. :", 1065),
         ("193 p., 31 p. of plates", 193),
     ]
     for (value, expect) in data:
         rec = MockRecord('300', [('a', value)])
         output = read_pagination(rec)
         self.assertEqual(output['number_of_pages'], expect)
         self.assertEqual(output['pagination'], value)