From a44d358f2949e420dc82b530e07f21ae158f00ae Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Thu, 26 Apr 2018 17:37:24 +0300 Subject: Tests: added test for callable write() in Python. --- test/test_python_application.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test_python_application.py') 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() -- cgit