Tests: more Python tests.

This commit is contained in:
Andrey Zelenkov
2018-04-02 17:03:41 +03:00
parent efb71121b9
commit a01a98ce36
17 changed files with 215 additions and 69 deletions

View File

@@ -0,0 +1,7 @@
def application(environ, start_response):
input_length = int(environ.get('HTTP_INPUT_LENGTH'))
body = bytes(environ['wsgi.input'].read(input_length))
start_response('200', [('Content-Length', str(len(body)))])
return [body]