Fix the varexpand quotes tests since quotes are no longer removed by this function...
authorZac Medico <zmedico@gentoo.org>
Sun, 13 May 2007 07:21:57 +0000 (07:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 13 May 2007 07:21:57 +0000 (07:21 -0000)
svn path=/main/branches/2.1.2/; revision=6526

tests/portage_util/test_varExpand.py

index 0515bf7e56c116711da53a615085559b1e07c5c1..63f6433e9a231c15e0258ee76913bb7668448173 100644 (file)
@@ -25,7 +25,7 @@ class VarExpandTestCase(TestCase):
        def testVarExpandDoubleQuotes(self):
                
                varDict = { "a":"5" }
-               tests = [ ("\"${a}\"", "5") ]
+               tests = [ ("\"${a}\"", "\"5\"") ]
                for test in tests:
                        result = varexpand( test[0], varDict )
                        self.failIf( result != test[1],
@@ -35,7 +35,7 @@ class VarExpandTestCase(TestCase):
        def testVarExpandSingleQuotes(self):
                
                varDict = { "a":"5" }
-               tests = [ ("\'${a}\'", "${a}") ]
+               tests = [ ("\'${a}\'", "\'${a}\'") ]
                for test in tests:
                        result = varexpand( test[0], varDict )
                        self.failIf( result != test[1],