def test_invalid_reference(self): doc = self.get_doc('001-58128') refs, t = parse_references(doc) self.assertEqual(len(refs), t)
def test_ref_starts_with_digit(self): doc = self.get_doc('001-57484') parse_references(doc)
def test_ignore_cited_above(self): doc = self.get_doc('001-107596') refs, t = parse_references(doc) self.assertEqual(t, 28) self.assertEqual(len(refs), t)
def test_ref_with_pp(self): doc = self.get_doc('001-89410') refs, t = parse_references(doc) self.assertTrue(t > 0) self.assertEqual(len(refs), t)
def test_empty_ref(self): doc = self.get_doc('001-110266') refs, t = parse_references(doc) self.assertTrue(t > 0) self.assertEqual(len(refs), t)