diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-05-31 09:35:51 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-05-31 09:35:51 +0000 |
commit | 47c06af79ab21ad40ac8a56205ac0069d1ca9239 (patch) | |
tree | 798d9b2f22c2af72cd874c7e6e0afcd9fb75bfd2 | |
parent | f7953f585a939ac810876fdc3c7c674d0f8357c3 (diff) | |
download | portage-47c06af79ab21ad40ac8a56205ac0069d1ca9239.tar.gz portage-47c06af79ab21ad40ac8a56205ac0069d1ca9239.tar.bz2 portage-47c06af79ab21ad40ac8a56205ac0069d1ca9239.zip |
Add some isvalidatom() test cases with "null" and missing category.
svn path=/main/trunk/; revision=10519
-rw-r--r-- | pym/portage/tests/dep/test_isvalidatom.py | 12 |
1 files changed, 11 insertions, 1 deletions
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]: |