Example #1
0
def test_one_word():
    text = 'duck'
    result = cap.just_do_it(text)
    eq_(result, 'Duck')
Example #2
0
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")
Example #3
0
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")
Example #4
0
def test_multiple_words():
    text = 'a veritable flock of ducks'
    result = cap.just_do_it(text)
    eq_(result, 'A Veritable Flock Of Ducks')
Example #5
0
 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')
Example #6
0
 def test_one_word(self):
     text = 'duck'
     result = cap.just_do_it(text)
     self.assertEqual(result, 'Duck')    # assertion : 예상되는 결과