summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_application.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-10-23 16:59:53 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-10-23 16:59:53 +0300
commit13b4538fc7660d2fa697f4aa3ab057ac748264bc (patch)
tree85431f5a74c7479354e770b3c11e593919b2be87 /test/test_python_application.py
parentd58fe3db98dfbd2616eb0d9483b4758d08467255 (diff)
downloadunit-13b4538fc7660d2fa697f4aa3ab057ac748264bc.tar.gz
unit-13b4538fc7660d2fa697f4aa3ab057ac748264bc.tar.bz2
Tests: added test with invalid "working_directory" value.
Diffstat (limited to 'test/test_python_application.py')
-rw-r--r--test/test_python_application.py12
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')