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

pym/portage/tests/util/test_varExpand.py

index 0a8bf5b118e7db8c5d755162c71d71e67e289880..ee0f573c97b1e656d80b0edd77b4c7feebf446c0 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],