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