summaryrefslogtreecommitdiffhomepage
path: root/test/python
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-02-04 15:09:54 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-02-04 15:09:54 +0000
commit42725137f7a19991680c78a0b2d69bcbf1f9ab63 (patch)
tree0092d24f45f29daeaf9ef263879a04809685b439 /test/python
parentf2d96335664f561cab4ff2ff02f5cd3333af3b3a (diff)
downloadunit-42725137f7a19991680c78a0b2d69bcbf1f9ab63.tar.gz
unit-42725137f7a19991680c78a0b2d69bcbf1f9ab63.tar.bz2
Tests: added tests for "path" option in Python application.
Diffstat (limited to '')
-rw-r--r--test/python/path/wsgi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/path/wsgi.py b/test/python/path/wsgi.py
new file mode 100644
index 00000000..2807f6ef
--- /dev/null
+++ b/test/python/path/wsgi.py
@@ -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]