summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-11 19:28:14 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-11 19:28:14 +0000
commit9b788ebbb283ea1c98644ed57ac67e654cfc767a (patch)
tree963f5a06c4dfab6b681083a63b06cccecb7cd9a0 /tests
parentd4609cec2231469d82d13ce9bb62e986d99ff87c (diff)
downloadportage-9b788ebbb283ea1c98644ed57ac67e654cfc767a.tar.gz
portage-9b788ebbb283ea1c98644ed57ac67e654cfc767a.tar.bz2
portage-9b788ebbb283ea1c98644ed57ac67e654cfc767a.zip
add some invalid operators to the test to denote that get_operator doesn't validate them, also make sure some common mis-typed things are tested (=> instead of >= fex)
svn path=/main/trunk/; revision=5559
Diffstat (limited to 'tests')
-rw-r--r--tests/portage_dep/test_get_operator.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/portage_dep/test_get_operator.py b/tests/portage_dep/test_get_operator.py
index d3f5792b6..b2fa5965b 100644
--- a/tests/portage_dep/test_get_operator.py
+++ b/tests/portage_dep/test_get_operator.py
@@ -10,8 +10,11 @@ class GetOperator(TestCase):
def testGetOperator(self):
+ # get_operator does not validate operators
tests = [ ( "~", "~" ), ( "=", "=" ), ( ">", ">" ),
- ( ">=", ">=" ), ( "<=", "<=" ) , ( "", None ) ]
+ ( ">=", ">=" ), ( "<=", "<=" ) , ( "", None ),
+ ( ">~", ">" ), ("~<", "~"), ( "=~", "=" ),
+ ( "=>", "=" ), ("=<", "=") ]
testCP = "sys-apps/portage"