diff options
author | 2007-01-11 20:59:53 +0000 | |
---|---|---|
committer | 2007-01-11 20:59:53 +0000 | |
commit | eeda44059871c5d321a308c8d882ef62143a83e3 (patch) | |
tree | 47f73a4c1028e2eb99ac5cdd16f11755012ce9f3 | |
parent | For bug #50738, inform the user about the location of the timestamp file and ... (diff) | |
download | portage-multirepo-eeda44059871c5d321a308c8d882ef62143a83e3.tar.gz portage-multirepo-eeda44059871c5d321a308c8d882ef62143a83e3.tar.bz2 portage-multirepo-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.py | 6 |
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 6928794a..90e1b6e5 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 ) |