Esempio n. 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'
     )
Esempio n. 2
0
 def test_title_case_multiple_words(self):
     self.assertEqual(
         title_case('SOME WORDS like tHiS'),
         'Some Words Like This'
     )
Esempio n. 3
0
 def test_title_case_leaves_special_words_lowercase(self):
     self.assertEqual(
         title_case('HELLO FOR THE PEOPLE'),
         'Hello for the People'
     )
Esempio n. 4
0
 def test_title_case_none_returns_none(self):
     self.assertIsNone(title_case(None))
Esempio n. 5
0
 def test_title_case_empty_string_returns_none(self):
     self.assertIsNone(title_case(''))
Esempio n. 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')
Esempio n. 7
0
 def test_title_case_leaves_special_words_lowercase(self):
     self.assertEqual(title_case('HELLO FOR THE PEOPLE'),
                      'Hello for the People')
Esempio n. 8
0
 def test_title_case_multiple_words(self):
     self.assertEqual(title_case('SOME WORDS like tHiS'),
                      'Some Words Like This')
Esempio n. 9
0
 def test_title_case_empty_string_returns_none(self):
     self.assertIsNone(title_case(''))
Esempio n. 10
0
 def test_title_case_none_returns_none(self):
     self.assertIsNone(title_case(None))