add some invalid operators to the test to denote that get_operator doesn't validate...
authorAlec Warner <antarus@gentoo.org>
Thu, 11 Jan 2007 19:28:14 +0000 (19:28 -0000)
committerAlec Warner <antarus@gentoo.org>
Thu, 11 Jan 2007 19:28:14 +0000 (19:28 -0000)
svn path=/main/trunk/; revision=5559

tests/portage_dep/test_get_operator.py

index d3f5792b6f4fc87a687a393a8668aa1203221dd0..b2fa5965b3d462caaa526d4982b6d92a01d3f13f 100644 (file)
@@ -10,8 +10,11 @@ class GetOperator(TestCase):
 
        def testGetOperator(self):
 
+               # get_operator does not validate operators
                tests = [ ( "~", "~" ), ( "=", "=" ), ( ">", ">" ),
-                         ( ">=", ">=" ), ( "<=", "<=" ) , ( "", None ) ]
+                         ( ">=", ">=" ), ( "<=", "<=" ) , ( "", None ),
+                         ( ">~", ">" ), ("~<", "~"), ( "=~", "=" ),
+                         ( "=>", "=" ), ("=<", "=") ]
 
                testCP = "sys-apps/portage"