diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-10-23 16:59:53 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-10-23 16:59:53 +0300 |
commit | 13b4538fc7660d2fa697f4aa3ab057ac748264bc (patch) | |
tree | 85431f5a74c7479354e770b3c11e593919b2be87 /test/test_python_application.py | |
parent | d58fe3db98dfbd2616eb0d9483b4758d08467255 (diff) | |
download | unit-13b4538fc7660d2fa697f4aa3ab057ac748264bc.tar.gz unit-13b4538fc7660d2fa697f4aa3ab057ac748264bc.tar.bz2 |
Tests: added test with invalid "working_directory" value.
Diffstat (limited to '')
-rw-r--r-- | test/test_python_application.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py index 5b6e2089..8632621c 100644 --- a/test/test_python_application.py +++ b/test/test_python_application.py @@ -130,6 +130,18 @@ class TestPythonApplication(TestApplicationPython): self.get()['headers']['Server-Port'], '7080', 'Server-Port header' ) + @unittest.skip('not yet') + def test_python_application_working_directory_invalid(self): + self.load('empty') + + self.assertIn( + 'success', + self.conf('"/blah"', 'applications/empty/working_directory'), + 'configure invalid working_directory', + ) + + self.assertEqual(self.get()['status'], 500, 'status') + def test_python_application_204_transfer_encoding(self): self.load('204_no_content') |