From: Alec Warner Date: Thu, 11 Jan 2007 19:28:14 +0000 (-0000) Subject: add some invalid operators to the test to denote that get_operator doesn't validate... X-Git-Tag: v2.1.2~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b788ebbb283ea1c98644ed57ac67e654cfc767a;p=portage.git 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 --- 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"