Beispiel #1
0
 def test_strip_and_words(self):
     blob = TextBlob('Beautiful is better! ')
     assert_equal(blob.strip().words, WordList(['Beautiful', 'is', 'better'
                  ]))
Beispiel #2
0
 def test_strip(self):
     text = 'Beautiful is better than ugly. '
     blob = TextBlob(text)
     assert_true(is_blob(blob))
     assert_equal(blob.strip(), TextBlob(text.strip()))