Tests: reworked python tests with application.

This commit is contained in:
Andrey Zelenkov
2018-02-20 20:34:41 +03:00
parent babf67712e
commit 09f2009df5
12 changed files with 104 additions and 191 deletions

View File

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