def test_one_word(): text = 'duck' result = cap.just_do_it(text) eq_(result, 'Duck')
def test_words_with_quotes(self): text = "\"You're despicable,\" said Daffy Duck" result = cap.just_do_it(text) eq_(result, "\"You're Despicable,\" Said Daffy Duck")
def test_words_with_apostrophes(self): text = "I'm fresh out of ideas" result = cap.just_do_it(text) eq_(result, "I'm Fresh Out Of Ideas")
def test_multiple_words(): text = 'a veritable flock of ducks' result = cap.just_do_it(text) eq_(result, 'A Veritable Flock Of Ducks')
def test_multiple_words(self): text = 'a veritable flock of ducks' result = cap.just_do_it(text) self.assertEqual(result, 'A Veritable Flock Of Ducks')
def test_one_word(self): text = 'duck' result = cap.just_do_it(text) self.assertEqual(result, 'Duck') # assertion : 예상되는 결과