コード例 #1
0
def test_one_word():
    text = 'duck'
    result = cap.just_do_it(text)
    eq_(result, 'Duck')
コード例 #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")
コード例 #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")
コード例 #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')
コード例 #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')
コード例 #6
0
 def test_one_word(self):
     text = 'duck'
     result = cap.just_do_it(text)
     self.assertEqual(result, 'Duck')    # assertion : 예상되는 결과