コード例 #1
0
ファイル: test_cap.py プロジェクト: lanceyvang/Interviewing
 def test_multiple_words(self):
     text = 'monty python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Monty Python')
コード例 #2
0
ファイル: test_cap.py プロジェクト: lanceyvang/Interviewing
 def test_one_word(self):
     text = 'python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Python')
コード例 #3
0
 def test_multiple_word(self):
     text = "multi python"
     result = cap.cap_test(text)
     self.assertEqual(result, 'Multi python')
コード例 #4
0
 def test_two_word(self):
     text = 'python programming'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Python Programming')
コード例 #5
0
 def test_each_word(self):
     text = 'monty python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Monty Python')
コード例 #6
0
 def test_one_word(self):
     text = "python"
     result = cap.cap_test(text)
     self.assertEqual(result, 'python'.capitalize())
コード例 #7
0
 def test_multiple_word(self):
     text = "monty python"
     result = cap.cap_test(text)
     self.assertEqual(result, "monty python".capitalize())