From: Zac Medico Date: Sat, 31 May 2008 09:35:51 +0000 (-0000) Subject: Add some isvalidatom() test cases with "null" and missing category. X-Git-Tag: v2.2_pre8~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47c06af79ab21ad40ac8a56205ac0069d1ca9239;p=portage.git Add some isvalidatom() test cases with "null" and missing category. svn path=/main/trunk/; revision=10519 --- diff --git a/pym/portage/tests/dep/test_isvalidatom.py b/pym/portage/tests/dep/test_isvalidatom.py index 2b99b3dcb..dfcf17898 100644 --- a/pym/portage/tests/dep/test_isvalidatom.py +++ b/pym/portage/tests/dep/test_isvalidatom.py @@ -31,7 +31,17 @@ class IsValidAtom(TestCase): ( "<~category/foo-1.0", False ), ( "###cat/foo-1.0", False ), ( "~sys-apps/portage", False ), - ( "portage", False ) ] + ( "portage", False ), + ( "=portage", False ), + ( ">=portage-2.1", False ), + ( "~portage-2.1", False ), + ( "=portage-2.1*", False ), + ( "null/portage", True ), + ( "=null/portage", False ), + ( "=null/portage*", False ), + ( ">=null/portage-2.1", True ), + ( "~null/portage-2.1", True ), + ( "=null/portage-2.1*", True ),] for test in tests: if test[1]: