summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/dep/testStandalone.py
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-08-15 01:24:24 +0200
committerZac Medico <zmedico@gentoo.org>2010-08-14 16:31:28 -0700
commit249631f872e854a379319e5c6d5f871830c80860 (patch)
tree70c599ab8fc2ef2a00f39831c8ee010f4a3c518e /pym/portage/tests/dep/testStandalone.py
parent724421343eb64987e054c255527e40be73162a83 (diff)
downloadportage-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.py16
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)