Ejemplo n.º 1
0
 def test_multiple_words(self):
     text = 'monty python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Monty Python')
Ejemplo n.º 2
0
 def test_one_word(self):
     text = 'python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Python')
Ejemplo n.º 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')
Ejemplo n.º 5
0
 def test_each_word(self):
     text = 'monty python'
     result = cap.cap_test(text)
     self.assertEqual(result, 'Monty Python')
Ejemplo n.º 6
0
 def test_one_word(self):
     text = "python"
     result = cap.cap_test(text)
     self.assertEqual(result, 'python'.capitalize())
Ejemplo n.º 7
0
 def test_multiple_word(self):
     text = "monty python"
     result = cap.cap_test(text)
     self.assertEqual(result, "monty python".capitalize())