def test_strip_and_words(self): blob = TextBlob('Beautiful is better! ') assert_equal(blob.strip().words, WordList(['Beautiful', 'is', 'better' ]))
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()))