summaryrefslogtreecommitdiffhomepage
path: root/test/python/targets/wsgi.py
diff options
context:
space:
mode:
authorOisin Canty <o.canty@f5.com>2021-05-20 13:03:12 +0000
committerOisin Canty <o.canty@f5.com>2021-05-20 13:03:12 +0000
commite50bb120e2a2dfad55d28724133656264ef13dc8 (patch)
tree53a115359a9ad7d1f60f5dadb6f88a431a9eb563 /test/python/targets/wsgi.py
parentf60389a782470e31dc555ab864784b536f2544ca (diff)
downloadunit-e50bb120e2a2dfad55d28724133656264ef13dc8.tar.gz
unit-e50bb120e2a2dfad55d28724133656264ef13dc8.tar.bz2
Tests: Python targets.
Diffstat (limited to 'test/python/targets/wsgi.py')
-rw-r--r--test/python/targets/wsgi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/targets/wsgi.py b/test/python/targets/wsgi.py
new file mode 100644
index 00000000..fa17ab87
--- /dev/null
+++ b/test/python/targets/wsgi.py
@@ -0,0 +1,8 @@
+def wsgi_target_a(env, start_response):
+ start_response('200', [('Content-Length', '1')])
+ return [b'1']
+
+
+def wsgi_target_b(env, start_response):
+ start_response('200', [('Content-Length', '1')])
+ return [b'2']