diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-08-15 01:24:24 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-14 16:31:28 -0700 |
commit | 249631f872e854a379319e5c6d5f871830c80860 (patch) | |
tree | 70c599ab8fc2ef2a00f39831c8ee010f4a3c518e /pym/portage/tests/dep/testStandalone.py | |
parent | 724421343eb64987e054c255527e40be73162a83 (diff) | |
download | portage-249631f872e854a379319e5c6d5f871830c80860.tar.gz portage-249631f872e854a379319e5c6d5f871830c80860.tar.bz2 portage-249631f872e854a379319e5c6d5f871830c80860.zip |
portage.dep: Integrate the functionality of flatten into use_reduce
Diffstat (limited to 'pym/portage/tests/dep/testStandalone.py')
-rw-r--r-- | pym/portage/tests/dep/testStandalone.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/pym/portage/tests/dep/testStandalone.py b/pym/portage/tests/dep/testStandalone.py index a5d661cc3..e9f01df03 100644 --- a/pym/portage/tests/dep/testStandalone.py +++ b/pym/portage/tests/dep/testStandalone.py @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 from portage.tests import TestCase -from portage.dep import cpvequal, flatten +from portage.dep import cpvequal from portage.exception import PortageException class TestStandalone(TestCase): @@ -34,17 +34,3 @@ class TestStandalone(TestCase): for cpv1, cpv2 in test_cases_xfail: self.assertRaisesMsg("cpvequal("+cpv1+", "+cpv2+")", \ PortageException, cpvequal, cpv1, cpv2) - - - def testFlattenl(self): - - test_cases = ( - ( [], [] ), - ( [[]], [] ), - ( [[], 1], [1] ), - ( [1, [2, 3, [4]]], [1, 2, 3, 4] ), - ( [1, [2], 3, [4]], [1, 2, 3, 4] ), - ) - - for not_flat, flat in test_cases: - self.assertEqual(flatten(not_flat), flat) |