コード例 #1
0
 def test_one_word(self):
     text = 'python'
     result = capitalize.cap_text(text)
     self.assertEqual(result, 'Python')
コード例 #2
0
 def test_multiple_words(self):
     text = 'monty python'
     result = capitalize.cap_text(text)
     self.assertEqual(result, 'Monty Python')
コード例 #3
0
 def test_one_word(self):
     text = "python"
     result = capitalize.cap_text(text)
     self.assertEqual(result, "Python")