Beispiel #1
0
 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')
Beispiel #2
0
 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')
Beispiel #3
0
 def test_unicode(self):
     self.assertEqual(recapitalize_word('ÉMILIE'), 'Émilie')
     self.assertEqual(recapitalize_word('JOSÉ'), 'José')
Beispiel #4
0
 def test_force(self):
     self.assertEqual(recapitalize_word('jean', True), 'Jean')
Beispiel #5
0
 def test_lower(self):
     self.assertEqual(recapitalize_word('van'), 'van')
     self.assertEqual(recapitalize_word('alphonse'), 'alphonse')
Beispiel #6
0
 def test_unicode(self):
     self.assertEqual(recapitalize_word('ÉMILIE'), 'Émilie')
     self.assertEqual(recapitalize_word('JOSÉ'), 'José')
Beispiel #7
0
 def test_force(self):
     self.assertEqual(recapitalize_word('jean', True), 'Jean')
Beispiel #8
0
 def test_lower(self):
     self.assertEqual(recapitalize_word('van'), 'van')
     self.assertEqual(recapitalize_word('alphonse'), 'alphonse')