diff options
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', |