diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-09-06 20:18:33 +0300 |
commit | 511a0fa7605e61f90e524edfbcbefa230573e32f (patch) | |
tree | 011538ece353c804605a05452daa344e8be2d2fd /test/test_python_environment.py | |
parent | 58d23eb5b4cc15a11fa4550dc165b6be4797525a (diff) | |
download | unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.gz unit-511a0fa7605e61f90e524edfbcbefa230573e32f.tar.bz2 |
Tests: used relative path for configuration.
Diffstat (limited to '')
-rw-r--r-- | test/test_python_environment.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/test_python_environment.py b/test/test_python_environment.py index 278f7952..907ad57c 100644 --- a/test/test_python_environment.py +++ b/test/test_python_environment.py @@ -11,28 +11,28 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): self.assertIn('error', self.conf({ "va\0r": "val1" - }, '/applications/environment/environment'), 'name null') + }, 'applications/environment/environment'), 'name null') def test_python_environment_name_equals(self): self.load('environment') self.assertIn('error', self.conf({ "var=": "val1" - }, '/applications/environment/environment'), 'name equals') + }, 'applications/environment/environment'), 'name equals') def test_python_environment_value_null(self): self.load('environment') self.assertIn('error', self.conf({ "var": "\0val" - }, '/applications/environment/environment'), 'value null') + }, 'applications/environment/environment'), 'value null') def test_python_environment_update(self): self.load('environment') self.conf({ "var": "val1" - }, '/applications/environment/environment') + }, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', @@ -42,7 +42,7 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): self.conf({ "var": "val2" - }, '/applications/environment/environment') + }, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', @@ -55,7 +55,7 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): self.conf({ "var1": "val1" - }, '/applications/environment/environment') + }, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', @@ -65,7 +65,7 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): self.conf({ "var2": "val2" - }, '/applications/environment/environment') + }, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', @@ -79,7 +79,7 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): self.conf({ "var1": "val1", "var2": "val2" - }, '/applications/environment/environment') + }, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', @@ -87,7 +87,7 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): 'Connection': 'close' })['body'], 'val1,val2,', 'set') - self.conf({}, '/applications/environment/environment') + self.conf({}, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', @@ -108,7 +108,7 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): self.conf({ "PWD": "new/pwd" - }, '/applications/environment/environment') + }, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', @@ -116,7 +116,7 @@ class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): 'Connection': 'close' })['body'], 'new/pwd,', 'replace default') - self.conf({}, '/applications/environment/environment') + self.conf({}, 'applications/environment/environment') self.assertEqual(self.get(headers={ 'Host': 'localhost', |