Files
deb-python-falcon/tests/test_response_body.py
2016-03-07 11:29:05 -06:00

18 lines
361 B
Python

import falcon
import falcon.testing as testing
class TestResponseBody(testing.TestBase):
def test_append_body(self):
text = 'Hello beautiful world! '
resp = falcon.Response()
resp.body = ''
for token in text.split():
resp.body += token
resp.body += ' '
self.assertEqual(resp.body, text)