Пример #1
0
 def test_fixBadPageNumbers_range_4hyphens(self):
     bad_range = '153----176'
     good_range = '153--176'
     self.assertEqual(good_range, fixer.fixBadPageNumbers(bad_range))
Пример #2
0
 def test_fixBadPageNumbers_range_emdash(self):
     bad_range = '153—176'
     good_range = '153--176'
     self.assertEqual(good_range, fixer.fixBadPageNumbers(bad_range))
Пример #3
0
 def test_fixBadPageNumbers_range_morespace(self):
     bad_range = '153   --   176'
     good_range = '153--176'
     self.assertEqual(good_range, fixer.fixBadPageNumbers(bad_range))