def test_ABBREVIATIONS_ignore(self): for example in ( "not NOV", "USA", "Upper", "Ab", "some A", "lower", "some Upper", "in A, B", "in A and B", "A, B, and C", ): self.assertTrue(ABBREVIATIONS.search(example) is None, example)
def test_ABBREVIATIONS_name_or_bracket(self): for example in ("Mister X", "Xen, B", "Xen and C", "Xen, and C", "this [G", "that (Z"): # 'by A', self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
def test_ABBREVIATIONS_abbrevs(self): for example in ("Of approx", "12 vs"): self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
def test_ABBREVIATIONS_single_char(self): for example in ("A", "Z", "a", "1", "0", ".", "*", "$"): self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
def test_ABBREVIATIONS_name_or_bracket(self): for example in ( # 'by A', 'Mister X', 'Xen, B', 'Xen and C', 'Xen, and C', 'this [G', 'that (Z'): self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
def test_ABBREVIATIONS_ignore(self): for example in ('not NOV', 'USA', 'Upper', 'Ab', 'some A', 'lower', 'some Upper', 'in A, B', 'in A and B', 'A, B, and C'): self.assertTrue(ABBREVIATIONS.search(example) is None, example)
def test_ABBREVIATIONS_single_char(self): for example in ('A', 'Z', 'a', '1', '0', '.', '*', '$'): self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
def test_ABBREVIATIONS_abbrevs(self): for example in ('Of approx', '12 vs'): self.assertTrue(ABBREVIATIONS.search(example) is not None, example)