From 68cee055aba91242c664f4c59606ffce73f4ce37 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Wed, 10 Jan 2007 13:45:27 +0000 Subject: split out util tests svn path=/main/trunk/; revision=5529 --- tests/portage_util/test_util.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'tests/portage_util/test_util.py') diff --git a/tests/portage_util/test_util.py b/tests/portage_util/test_util.py index e16da6c1d..ddbfb8031 100644 --- a/tests/portage_util/test_util.py +++ b/tests/portage_util/test_util.py @@ -18,22 +18,3 @@ class UtilTestCase(TestCase): def testStackDicts(self): pass - - def testStackDictList(self): - from portage_util import stack_dictlist - - tests = [ ({'a':'b'},{'x':'y'},False,{'a':['b'],'x':['y']}) ] - 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])) ) - - def testNormalizePath(self): - - from portage_util import normalize_path - path = "///foo/bar/baz" - good = "/foo/bar/baz" - self.failUnless(normalize_path(path) == good, msg="NormalizePath(%s) failed to produce %s" % (path, good)) - -- cgit v1.2.3-1-g7c22