Tests: added tests for "path" option in Python application.

This commit is contained in:
Andrei Zeliankou
2021-02-04 15:09:54 +00:00
parent f2d9633566
commit 42725137f7
2 changed files with 45 additions and 0 deletions

8
test/python/path/wsgi.py Normal file
View File

@@ -0,0 +1,8 @@
import os
import sys
def application(environ, start_response):
body = os.pathsep.join(sys.path).encode()
start_response('200', [('Content-Length', str(len(body)))])
return [body]