add unit tests

This commit is contained in:
Yun Xu 2017-06-10 09:48:30 -07:00
parent 071bc23411
commit e3d8f12bb6

View File

@ -185,6 +185,11 @@ def test_request_stream_handle_exception():
assert response.status == 404
assert response.text == 'Error: Requested URL /in_valid_post not found'
# 405
request, response = app.test_client.get('/post/random_id', data=data)
assert response.status == 405
assert response.text == 'Error: Method GET not allowed for URL /post/random_id'
def test_request_stream_blueprint():
'''for self.is_request_stream = True'''