Exemple #1
0
 def test_multiple_words(self):
     text = 'monty python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Monty Python')
Exemple #2
0
 def test_one_word(self):
     text = 'python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Python')
Exemple #3
0
 def test_multiple_word(self):
     text = "multi python"
     result = cap.cap_test(text)
     self.assertEqual(result, 'Multi python')
 def test_two_word(self):
     text = 'python programming'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Python Programming')
 def test_each_word(self):
     text = 'monty python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Monty Python')
Exemple #6
0
 def test_one_word(self):
     text = "python"
     result = cap.cap_test(text)
     self.assertEqual(result, 'python'.capitalize())
Exemple #7
0
 def test_multiple_word(self):
     text = "monty python"
     result = cap.cap_test(text)
     self.assertEqual(result, "monty python".capitalize())