diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-10-04 11:01:15 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-10-04 11:01:15 +0200 |
commit | 6b22c57613c2d68812c1059f6ec72a1ec1c1e8f8 (patch) | |
tree | 6205012257a4f916578a2bfcb9651d540b7129dd | |
parent | bfd766086acfe6e2702934ebd9893aae5b2ae08a (diff) |
test: fix unit tests where env vars are now appended with spaces
-rw-r--r-- | test/test_cerbero_build_build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_cerbero_build_build.py b/test/test_cerbero_build_build.py index 1fad1bc5..88233511 100644 --- a/test/test_cerbero_build_build.py +++ b/test/test_cerbero_build_build.py @@ -55,14 +55,14 @@ class ModifyEnvTest(unittest.TestCase): os.environ[self.var] = self.val1 self.mk.append_env = {self.var: self.val2} val = self.mk.get_env_var(self.var) - self.assertEquals(val, self.val1 + self.val2) + self.assertEquals(val, "%s %s" % (self.val1, self.val2)) def testAppendNonExistentEnv(self): if self.var in os.environ: del os.environ[self.var] self.mk.append_env = {self.var: self.val2} val = self.mk.get_env_var(self.var) - self.assertEquals(val, self.val2) + self.assertEquals(val, ' %s' % self.val2) def testNewEnv(self): os.environ[self.var] = self.val1 @@ -91,6 +91,6 @@ class ModifyEnvTest(unittest.TestCase): os.environ[self.var] = self.val1 self.mk.append_env = {self.var: self.val2} val = self.mk.get_env_var(self.var) - self.assertEquals(val, self.val1 + self.val2) + self.assertEquals(val, "%s %s" % (self.val1, self.val2)) val = self.mk.get_env_var_nested(self.var) - self.assertEquals(val, self.val1 + self.val2) + self.assertEquals(val, "%s %s" % (self.val1, self.val2)) |