aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-04 16:16:15 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-04 16:16:15 -0800
commit6c9cbe5ab35ba4fd666924fbac4ad63d8f820719 (patch)
tree829f3647c42e701893b5cf56313557557d7611ed /pym/portage/tests
parentREQUIRED_USE: fix single child conditionals disp (diff)
downloadportage-6c9cbe5ab35ba4fd666924fbac4ad63d8f820719.tar.gz
portage-6c9cbe5ab35ba4fd666924fbac4ad63d8f820719.tar.bz2
portage-6c9cbe5ab35ba4fd666924fbac4ad63d8f820719.zip
REQUIRED_USE: fix parens display and test more
Diffstat (limited to 'pym/portage/tests')
-rw-r--r--pym/portage/tests/dep/testCheckRequiredUse.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pym/portage/tests/dep/testCheckRequiredUse.py b/pym/portage/tests/dep/testCheckRequiredUse.py
index a0e10b1e7..54791e016 100644
--- a/pym/portage/tests/dep/testCheckRequiredUse.py
+++ b/pym/portage/tests/dep/testCheckRequiredUse.py
@@ -192,6 +192,11 @@ class TestCheckRequiredUse(TestCase):
""
),
(
+ "( ( ( a ) ) ( ( ( b c ) ) ) )",
+ [""],
+ "a b c"
+ ),
+ (
"|| ( ( ( ( a ) ) ( ( ( b c ) ) ) ) )",
[""],
"a b c"
@@ -200,7 +205,12 @@ class TestCheckRequiredUse(TestCase):
"|| ( ( a ( ( ) ( ) ) ( ( ) ) ( b ( ) c ) ) )",
[""],
"a b c"
- )
+ ),
+ (
+ "|| ( ( a b c ) ) || ( ( d e f ) )",
+ [""],
+ "a b c d e f"
+ ),
)
for required_use, use, expected in test_cases:
result = check_required_use(required_use, use, lambda k: True).tounicode()