From: Zac Medico Date: Sat, 31 May 2008 09:37:28 +0000 (-0000) Subject: Add some isvalidatom() test cases with "null" and missing category. X-Git-Tag: v2.1.5.3~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f8997a62928a1f87fed87bb219dd6729f2fb49e;p=portage.git Add some isvalidatom() test cases with "null" and missing category. (trunk r10519) svn path=/main/branches/2.1.2/; revision=10520 --- diff --git a/tests/portage_dep/test_isvalidatom.py b/tests/portage_dep/test_isvalidatom.py index cf82f144f..3f8c35ef6 100644 --- a/tests/portage_dep/test_isvalidatom.py +++ b/tests/portage_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]: