diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-04-26 17:37:24 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-04-26 17:37:24 +0300 |
commit | a44d358f2949e420dc82b530e07f21ae158f00ae (patch) | |
tree | c23867f1e597d97fdfb1abcc40066ef3cf7b2c34 /test/test_python_application.py | |
parent | d1b0f7455019b1234b2093cf9b0f1742e07b460f (diff) | |
download | unit-a44d358f2949e420dc82b530e07f21ae158f00ae.tar.gz unit-a44d358f2949e420dc82b530e07f21ae158f00ae.tar.bz2 |
Tests: added test for callable write() in Python.
Diffstat (limited to '')
-rw-r--r-- | test/test_python_application.py | 5 |
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() |