Exemple #1
0
 def test_title_case_first_special_word_titlecase(self):
     self.assertEqual(
         title_case('of the people by the people'),
         'Of the People by the People'
     )
Exemple #2
0
 def test_title_case_multiple_words(self):
     self.assertEqual(
         title_case('SOME WORDS like tHiS'),
         'Some Words Like This'
     )
Exemple #3
0
 def test_title_case_leaves_special_words_lowercase(self):
     self.assertEqual(
         title_case('HELLO FOR THE PEOPLE'),
         'Hello for the People'
     )
Exemple #4
0
 def test_title_case_none_returns_none(self):
     self.assertIsNone(title_case(None))
Exemple #5
0
 def test_title_case_empty_string_returns_none(self):
     self.assertIsNone(title_case(''))
Exemple #6
0
 def test_title_case_first_special_word_titlecase(self):
     self.assertEqual(title_case('of the people by the people'),
                      'Of the People by the People')
Exemple #7
0
 def test_title_case_leaves_special_words_lowercase(self):
     self.assertEqual(title_case('HELLO FOR THE PEOPLE'),
                      'Hello for the People')
Exemple #8
0
 def test_title_case_multiple_words(self):
     self.assertEqual(title_case('SOME WORDS like tHiS'),
                      'Some Words Like This')
Exemple #9
0
 def test_title_case_empty_string_returns_none(self):
     self.assertIsNone(title_case(''))
Exemple #10
0
 def test_title_case_none_returns_none(self):
     self.assertIsNone(title_case(None))