summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_application.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-04-26 17:37:24 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-04-26 17:37:24 +0300
commita44d358f2949e420dc82b530e07f21ae158f00ae (patch)
treec23867f1e597d97fdfb1abcc40066ef3cf7b2c34 /test/test_python_application.py
parentd1b0f7455019b1234b2093cf9b0f1742e07b460f (diff)
downloadunit-a44d358f2949e420dc82b530e07f21ae158f00ae.tar.gz
unit-a44d358f2949e420dc82b530e07f21ae158f00ae.tar.bz2
Tests: added test for callable write() in Python.
Diffstat (limited to 'test/test_python_application.py')
-rw-r--r--test/test_python_application.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py
index f54d5803..1a6560e5 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -238,5 +238,10 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
r'\[error\].+the application returned not an iterable object'),
'not iterable')
+ def test_python_application_write(self):
+ self.load('write')
+
+ self.assertEqual(self.get()['body'], '0123456789', 'write')
+
if __name__ == '__main__':
unittest.main()