is_request_stream for CompositionView and HTTPMethodView

This commit is contained in:
38elements
2017-05-08 23:04:45 +09:00
parent 15ad07f03d
commit 4d4f38fb35
7 changed files with 228 additions and 60 deletions

View File

@@ -28,12 +28,15 @@ def test_route_strict_slash():
@app.get('/get', strict_slashes=True)
def handler(request):
assert request.stream is None
return text('OK')
@app.post('/post/', strict_slashes=True)
def handler(request):
return text('OK')
assert app.is_request_stream is False
request, response = app.test_client.get('/get')
assert response.text == 'OK'