4d3 < class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): 5a5 > class TestUnitPythonEnvironment(unit.TestUnitApplicationPython): 12,14c12,18 < self.assertIn('error', self.conf({ < "va\0r": "val1" < }, 'applications/environment/environment'), 'name null') --- > self.assertIn( > 'error', > self.conf( > {"va\0r": "val1"}, 'applications/environment/environment' > ), > 'name null', > ) 19,21c23,29 < self.assertIn('error', self.conf({ < "var=": "val1" < }, 'applications/environment/environment'), 'name equals') --- > self.assertIn( > 'error', > self.conf( > {"var=": "val1"}, 'applications/environment/environment' > ), > 'name equals', > ) 26,28c34,40 < self.assertIn('error', self.conf({ < "var": "\0val" < }, 'applications/environment/environment'), 'value null') --- > self.assertIn( > 'error', > self.conf( > {"var": "\0val"}, 'applications/environment/environment' > ), > 'value null', > ) 33,35c45 < self.conf({ < "var": "val1" < }, 'applications/environment/environment') --- > self.conf({"var": "val1"}, 'applications/environment/environment') 37,41c47,57 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'var', < 'Connection': 'close' < })['body'], 'val1,', 'set') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'var', > 'Connection': 'close', > } > )['body'], > 'val1,', > 'set', > ) 43,45c59 < self.conf({ < "var": "val2" < }, 'applications/environment/environment') --- > self.conf({"var": "val2"}, 'applications/environment/environment') 47,51c61,71 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'var', < 'Connection': 'close' < })['body'], 'val2,', 'update') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'var', > 'Connection': 'close', > } > )['body'], > 'val2,', > 'update', > ) 56,58c76 < self.conf({ < "var1": "val1" < }, 'applications/environment/environment') --- > self.conf({"var1": "val1"}, 'applications/environment/environment') 60,64c78,88 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'var1', < 'Connection': 'close' < })['body'], 'val1,', 'set') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'var1', > 'Connection': 'close', > } > )['body'], > 'val1,', > 'set', > ) 66,68c90 < self.conf({ < "var2": "val2" < }, 'applications/environment/environment') --- > self.conf({"var2": "val2"}, 'applications/environment/environment') 70,74c92,102 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'var1,var2', < 'Connection': 'close' < })['body'], 'val2,', 'replace') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'var1,var2', > 'Connection': 'close', > } > )['body'], > 'val2,', > 'replace', > ) 79,82c107,110 < self.conf({ < "var1": "val1", < "var2": "val2" < }, 'applications/environment/environment') --- > self.conf( > {"var1": "val1", "var2": "val2"}, > 'applications/environment/environment', > ) 84,88c112,122 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'var1,var2', < 'Connection': 'close' < })['body'], 'val1,val2,', 'set') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'var1,var2', > 'Connection': 'close', > } > )['body'], > 'val1,val2,', > 'set', > ) 92,96c126,136 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'var1,var2', < 'Connection': 'close' < })['body'], '', 'clear') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'var1,var2', > 'Connection': 'close', > } > )['body'], > '', > 'clear', > ) 101,105c141,147 < pwd_default = self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'PWD', < 'Connection': 'close' < })['body'] --- > pwd_default = self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'PWD', > 'Connection': 'close', > } > )['body'] 109,111c151 < self.conf({ < "PWD": "new/pwd" < }, 'applications/environment/environment') --- > self.conf({"PWD": "new/pwd"}, 'applications/environment/environment') 113,117c153,163 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'PWD', < 'Connection': 'close' < })['body'], 'new/pwd,', 'replace default') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'PWD', > 'Connection': 'close', > } > )['body'], > 'new/pwd,', > 'replace default', > ) 121,125c167,177 < self.assertEqual(self.get(headers={ < 'Host': 'localhost', < 'X-Variables': 'PWD', < 'Connection': 'close' < })['body'], pwd_default, 'restore default') --- > self.assertEqual( > self.get( > headers={ > 'Host': 'localhost', > 'X-Variables': 'PWD', > 'Connection': 'close', > } > )['body'], > pwd_default, > 'restore default', > ) 126a179 >