예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 def test_ABBREVIATIONS_abbrevs(self):
     for example in ("Of approx", "12 vs"):
         self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
예제 #4
0
 def test_ABBREVIATIONS_single_char(self):
     for example in ("A", "Z", "a", "1", "0", ".", "*", "$"):
         self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
예제 #5
0
 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)
예제 #6
0
 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)
예제 #7
0
 def test_ABBREVIATIONS_single_char(self):
     for example in ('A', 'Z', 'a', '1', '0', '.', '*', '$'):
         self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
예제 #8
0
 def test_ABBREVIATIONS_abbrevs(self):
     for example in ('Of approx', '12 vs'):
         self.assertTrue(ABBREVIATIONS.search(example) is not None, example)
예제 #9
0
 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)
예제 #10
0
 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)
예제 #11
0
 def test_ABBREVIATIONS_single_char(self):
     for example in ('A', 'Z', 'a', '1', '0', '.', '*', '$'):
         self.assertTrue(ABBREVIATIONS.search(example) is not None, example)