summaryrefslogtreecommitdiff
path: root/tests/urlparser_data/python/stream.py
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2015-04-27 16:52:56 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2015-04-27 16:52:56 -0700
commit0fe289bf2f016ab296b17e47ef2c94ec38ed025d (patch)
tree40460a53680365b56ee9c43eb954f346da2637a2 /tests/urlparser_data/python/stream.py
downloadpaste-git-0fe289bf2f016ab296b17e47ef2c94ec38ed025d.tar.gz
Add tests/test_httpserver.py
which contains a test for the issue in BB-4, where the WSGI environment has strings with commas in them that don't belong. See issue #4.
Diffstat (limited to 'tests/urlparser_data/python/stream.py')
-rw-r--r--tests/urlparser_data/python/stream.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/urlparser_data/python/stream.py b/tests/urlparser_data/python/stream.py
new file mode 100644
index 0000000..e81fd1c
--- /dev/null
+++ b/tests/urlparser_data/python/stream.py
@@ -0,0 +1,7 @@
+def stream():
+ def app(environ, start_response):
+ writer = start_response('200 OK', [('Content-type', 'text/html')])
+ writer(b'te')
+ writer(b'st')
+ return [b'2']
+ return app