summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/util
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/tests/util')
-rw-r--r--pym/portage/tests/util/test_uniqueArray.py2
-rw-r--r--pym/portage/tests/util/test_varExpand.py12
2 files changed, 7 insertions, 7 deletions
diff --git a/pym/portage/tests/util/test_uniqueArray.py b/pym/portage/tests/util/test_uniqueArray.py
index 34daaf23c..2a1a20929 100644
--- a/pym/portage/tests/util/test_uniqueArray.py
+++ b/pym/portage/tests/util/test_uniqueArray.py
@@ -20,5 +20,5 @@ class UniqueArrayTestCase(TestCase):
result = unique_array( test[0] )
for item in test[1]:
number = result.count(item)
- self.failIf( number is not 1, msg="%s contains %s of %s, \
+ self.assertFalse( number is not 1, msg="%s contains %s of %s, \
should be only 1" % (result, number, item) )
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 ) )