summaryrefslogtreecommitdiffstats
path: root/tests/portage_util/test_stackDictList.py
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-11 19:43:03 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-11 19:43:03 +0000
commit230271398ae96229f7d5aff160d5d5ea6b5db3e1 (patch)
tree409dba9c896988124ae2acb978fe3bdcaa652035 /tests/portage_util/test_stackDictList.py
parent9b788ebbb283ea1c98644ed57ac67e654cfc767a (diff)
downloadportage-230271398ae96229f7d5aff160d5d5ea6b5db3e1.tar.gz
portage-230271398ae96229f7d5aff160d5d5ea6b5db3e1.tar.bz2
portage-230271398ae96229f7d5aff160d5d5ea6b5db3e1.zip
take some advice and use AssertEqual/NotEqual
svn path=/main/trunk/; revision=5560
Diffstat (limited to 'tests/portage_util/test_stackDictList.py')
-rw-r--r--tests/portage_util/test_stackDictList.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/portage_util/test_stackDictList.py b/tests/portage_util/test_stackDictList.py
index e6442ce43..02284e8f4 100644
--- a/tests/portage_util/test_stackDictList.py
+++ b/tests/portage_util/test_stackDictList.py
@@ -14,6 +14,5 @@ class StackDictListTestCase(TestCase):
tests.append(( {'KEYWORDS':['alpha','x86']},{'KEYWORDS':['-*']},True,{} ))
tests.append(( {'KEYWORDS':['alpha','x86']},{'KEYWORDS':['-x86']},True,{'KEYWORDS':['alpha']} ))
for test in tests:
- self.failUnless(stack_dictlist([test[0],test[1]],incremental=test[2]) == test[3],
- msg="%s and %s combined, was expecting: %s and got: %s" % (test[0],test[1],test[3],
- stack_dictlist([test[0],test[1]],incremental=test[2])) )
+ self.assertEqual(
+ stack_dictlist([test[0],test[1]],incremental=test[2]), test[3] )