Tests: added test for callable write() in Python.

This commit is contained in:
Andrey Zelenkov
2018-04-26 17:37:24 +03:00
parent d1b0f74550
commit a44d358f29
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
def application(env, start_response):
write = start_response('200', [('Content-Length', '10')])
write(b'012')
write(b'345')
return b'6789'