diff options
Diffstat (limited to 'pym/portage/tests/util/test_varExpand.py')
-rw-r--r-- | pym/portage/tests/util/test_varExpand.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pym/portage/tests/util/test_varExpand.py b/pym/portage/tests/util/test_varExpand.py index 1c2500dbd..30aa390bf 100644 --- a/pym/portage/tests/util/test_varExpand.py +++ b/pym/portage/tests/util/test_varExpand.py @@ -13,11 +13,11 @@ class VarExpandTestCase(TestCase): for key in varDict: result = varexpand( "$%s" % key, varDict ) - self.failIf( result != varDict[key], + self.assertFalse( result != varDict[key], msg="Got %s != %s, from varexpand( %s, %s )" % \ ( result, varDict[key], "$%s" % key, varDict ) ) result = varexpand( "${%s}" % key, varDict ) - self.failIf( result != varDict[key], + self.assertFalse( result != varDict[key], msg="Got %s != %s, from varexpand( %s, %s )" % \ ( result, varDict[key], "${%s}" % key, varDict ) ) @@ -27,7 +27,7 @@ class VarExpandTestCase(TestCase): tests = [ ("\"${a}\"", "\"5\"") ] for test in tests: result = varexpand( test[0], varDict ) - self.failIf( result != test[1], + self.assertFalse( result != test[1], msg="Got %s != %s from varexpand( %s, %s )" \ % ( result, test[1], test[0], varDict ) ) @@ -37,7 +37,7 @@ class VarExpandTestCase(TestCase): tests = [ ("\'${a}\'", "\'${a}\'") ] for test in tests: result = varexpand( test[0], varDict ) - self.failIf( result != test[1], + self.assertFalse( result != test[1], msg="Got %s != %s from varexpand( %s, %s )" \ % ( result, test[1], test[0], varDict ) ) @@ -49,11 +49,11 @@ class VarExpandTestCase(TestCase): for var in testVars: result = varexpand( "$%s" % var, varDict ) - self.failIf( len(result), + self.assertFalse( len(result), msg="Got %s == %s, from varexpand( %s, %s )" \ % ( result, var, "$%s" % var, varDict ) ) result = varexpand( "${%s}" % var, varDict ) - self.failIf( len(result), + self.assertFalse( len(result), msg="Got %s == %s, from varexpand( %s, %s )" \ % ( result, var, "${%s}" % var, varDict ) ) |