summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-11 20:59:53 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-11 20:59:53 +0000
commiteeda44059871c5d321a308c8d882ef62143a83e3 (patch)
tree47f73a4c1028e2eb99ac5cdd16f11755012ce9f3
parentf851747006de67283c9d2d8cca53e76c4dc8d98a (diff)
downloadportage-eeda44059871c5d321a308c8d882ef62143a83e3.tar.gz
portage-eeda44059871c5d321a308c8d882ef62143a83e3.tar.bz2
portage-eeda44059871c5d321a308c8d882ef62143a83e3.zip
add some invalid ops to getcpv to make sure it returns the cpv still
svn path=/main/trunk/; revision=5566
-rw-r--r--tests/portage_dep/test_dep_getcpv.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/portage_dep/test_dep_getcpv.py b/tests/portage_dep/test_dep_getcpv.py
index 6928794a4..90e1b6e56 100644
--- a/tests/portage_dep/test_dep_getcpv.py
+++ b/tests/portage_dep/test_dep_getcpv.py
@@ -14,6 +14,8 @@ class DepGetCPV(TestCase):
prefix_ops = ["<", ">", "=", "~", "!", "<=",
">=", "!=", "!<", "!>", "!~",""]
+
+ bad_prefix_ops = [ ">~", "<~", "~>", "~<" ]
postfix_ops = [ "*", "" ]
cpvs = ["sys-apps/portage"]
@@ -23,3 +25,7 @@ class DepGetCPV(TestCase):
for postfix in postfix_ops:
self.assertEqual( dep_getcpv(
prefix + cpv + postfix ), cpv )
+ for prefix in bad_prefix_ops:
+ for postfix in postfix_ops:
+ self.assertNotEqual( dep_getcpv(
+ prefix + cpv + postfix ), cpv )