def test_format(self): blob = TextBlob('1 + 1 = {0}') assert_equal(blob.format(1 + 1), TextBlob('1 + 1 = 2')) assert_equal('1 + 1 = {0}'.format(TextBlob('2')), '1 + 1 = 2')
def test_format(self): blob = TextBlob('1 + 1 = {0}') assert_equal(blob.format(1 + 1), TextBlob('1 + 1 = 2')) assert_equal('1 + 1 = {0}'.format(TextBlob('2')), '1 + 1 = 2')