summaryrefslogtreecommitdiffstats
path: root/tests/portage_util/test_stackDicts.py
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-27 18:16:08 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-27 18:16:08 +0000
commit6ac1f119472d2e41650f4cf7a9bdb17a3afda42c (patch)
treed993452f7ea513226b6fa4f6fd1ce130796a2914 /tests/portage_util/test_stackDicts.py
parent8a4a1ddb2255979e94ba5dd0148c4bbfd4920e57 (diff)
downloadportage-6ac1f119472d2e41650f4cf7a9bdb17a3afda42c.tar.gz
portage-6ac1f119472d2e41650f4cf7a9bdb17a3afda42c.tar.bz2
portage-6ac1f119472d2e41650f4cf7a9bdb17a3afda42c.zip
Move tests into new directory structure
svn path=/main/trunk/; revision=5794
Diffstat (limited to 'tests/portage_util/test_stackDicts.py')
-rw-r--r--tests/portage_util/test_stackDicts.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/portage_util/test_stackDicts.py b/tests/portage_util/test_stackDicts.py
deleted file mode 100644
index 9d9637440..000000000
--- a/tests/portage_util/test_stackDicts.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# test_stackDicts.py -- Portage Unit Testing Functionality
-# Copyright 2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-from unittest import TestCase
-from portage.util import stack_dicts
-
-
-class StackDictsTestCase(TestCase):
-
- def testStackDictsPass(self):
-
- tests = [ ( [ { "a":"b" }, { "b":"c" } ], { "a":"b", "b":"c" },
- False, [], False ),
- ( [ { "a":"b" }, { "a":"c" } ], { "a":"b c" },
- True, [], False ),
- ( [ { "a":"b" }, { "a":"c" } ], { "a":"b c" },
- False, ["a"], False ),
- ( [ { "a":"b" }, None ], { "a":"b" },
- False, [], True ),
- ( [ None ], None, False, [], False ),
- ( [ None, {}], {}, False, [], True ) ]
-
-
- for test in tests:
- result = stack_dicts( test[0], test[2], test[3], test[4] )
- self.assertEqual( result, test[1] )
-
- def testStackDictsFail(self):
-
- tests = [ ( [ None, {} ], None, False, [], True ),
- ( [ { "a":"b"}, {"a":"c" } ], { "a":"b c" },
- False, [], False ) ]
- for test in tests:
- result = stack_dicts( test[0], test[2], test[3], test[4] )
- self.assertNotEqual( result , test[1] )