From 47c06af79ab21ad40ac8a56205ac0069d1ca9239 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 31 May 2008 09:35:51 +0000 Subject: [PATCH] Add some isvalidatom() test cases with "null" and missing category. svn path=/main/trunk/; revision=10519 --- pym/portage/tests/dep/test_isvalidatom.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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]: -- 2.26.2