def test_recapitalize_word(self): self.assertEqual(recapitalize_word('Dupont'), 'Dupont') self.assertEqual(recapitalize_word('van'), 'van') self.assertEqual(recapitalize_word('CLARK'), 'Clark') self.assertEqual(recapitalize_word('GRANROTH-WILDING'), 'Granroth-Wilding') self.assertEqual(recapitalize_word('Jean-Pierre'), 'Jean-Pierre')
def test_recapitalize_word(self): self.assertEqual(recapitalize_word('Dupont'), 'Dupont') self.assertEqual(recapitalize_word('van'), 'van') self.assertEqual(recapitalize_word('CLARK'), 'Clark') self.assertEqual(recapitalize_word( 'GRANROTH-WILDING'), 'Granroth-Wilding') self.assertEqual(recapitalize_word('Jean-Pierre'), 'Jean-Pierre')
def test_unicode(self): self.assertEqual(recapitalize_word('ÉMILIE'), 'Émilie') self.assertEqual(recapitalize_word('JOSÉ'), 'José')
def test_force(self): self.assertEqual(recapitalize_word('jean', True), 'Jean')
def test_lower(self): self.assertEqual(recapitalize_word('van'), 'van') self.assertEqual(recapitalize_word('alphonse'), 'alphonse')
def test_unicode(self): self.assertEqual(recapitalize_word('ÉMILIE'), 'Émilie') self.assertEqual(recapitalize_word('JOSÉ'), 'José')
def test_force(self): self.assertEqual(recapitalize_word('jean', True), 'Jean')
def test_lower(self): self.assertEqual(recapitalize_word('van'), 'van') self.assertEqual(recapitalize_word('alphonse'), 'alphonse')