def test_fixBadPageNumbers_range_4hyphens(self): bad_range = '153----176' good_range = '153--176' self.assertEqual(good_range, fixer.fixBadPageNumbers(bad_range))
def test_fixBadPageNumbers_range_emdash(self): bad_range = '153—176' good_range = '153--176' self.assertEqual(good_range, fixer.fixBadPageNumbers(bad_range))
def test_fixBadPageNumbers_range_morespace(self): bad_range = '153 -- 176' good_range = '153--176' self.assertEqual(good_range, fixer.fixBadPageNumbers(bad_range))