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

@@ -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()