def test_try_unknown_prefix(self): isbn_unknown = "9751402894626" self.assertEqual(isbn_hyphenate.try_hyphenate(isbn_unknown), isbn_unknown)
def test_try_hyphenating_known_values(self): for with_hyphens in self.knownValues: without_hyphens = with_hyphens.replace('-', '') self.assertEqual(isbn_hyphenate.try_hyphenate(without_hyphens), with_hyphens)