def test_capitalize(self): input_words = ['abc', 'ABC', 'aBC', 'ABc'] capitalized = 'Abc' for word in input_words: self.assertEqual(camel.capitalize(word), capitalized)
def test_capitalize(self): sentence = ['abc', 'ABC', 'aBC', 'ABc'] capitalized = 'Abc' for letter in sentence: self.assertEqual(capitalized, camel.capitalize(sentence))