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

View File

@@ -1,12 +1,10 @@
import atexit
def application(environ, start_response):
test_dir = environ.get('HTTP_TEST_DIR')
def at_exit():
environ['wsgi.errors'].write('At exit called.')
def create_file():
open(test_dir + '/atexit', 'w')
atexit.register(create_file)
atexit.register(at_exit)
start_response('200', [('Content-Length', '0')])
return []