summaryrefslogtreecommitdiffhomepage
path: root/test/python
diff options
context:
space:
mode:
Diffstat (limited to 'test/python')
-rw-r--r--test/python/factory/wsgi.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/python/factory/wsgi.py b/test/python/factory/wsgi.py
new file mode 100644
index 00000000..8ad4887b
--- /dev/null
+++ b/test/python/factory/wsgi.py
@@ -0,0 +1,23 @@
+def wsgi_a(env, start_response):
+ start_response("200", [("Content-Length", "1")])
+ return [b"1"]
+
+
+def wsgi_b(env, start_response):
+ start_response("200", [("Content-Length", "1")])
+ return [b"2"]
+
+
+def wsgi_a_factory():
+ return wsgi_a
+
+
+def wsgi_b_factory():
+ return wsgi_b
+
+
+wsgi_invalid_callable = None
+
+
+def wsgi_factory_returning_invalid_callable():
+ return wsgi_invalid_callable