Exemplo n.º 1
0
 def test_try_unknown_prefix(self):
     isbn_unknown = "9751402894626"
     self.assertEqual(isbn_hyphenate.try_hyphenate(isbn_unknown), isbn_unknown)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def test_try_unknown_prefix(self):
     isbn_unknown = "9751402894626"
     self.assertEqual(isbn_hyphenate.try_hyphenate(isbn_unknown),
                      isbn_unknown)