Tests: more Python tests.

This commit is contained in:
Andrey Zelenkov
2018-04-02 17:03:41 +03:00
parent efb71121b9
commit a01a98ce36
17 changed files with 215 additions and 69 deletions

10
test/python/close/wsgi.py Normal file
View File

@@ -0,0 +1,10 @@
class application:
def __init__(self, environ, start_response):
self.environ = environ
self.start = start_response
def __iter__(self):
self.start('200', [(('Content-Length', '0'))])
def close(self):
self.environ['wsgi.errors'].write('Close called.')