Add some isvalidatom() test cases with "null" and missing category.
authorZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 09:35:51 +0000 (09:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 09:35:51 +0000 (09:35 -0000)
svn path=/main/trunk/; revision=10519

pym/portage/tests/dep/test_isvalidatom.py

index 2b99b3dcb0b3f30375b799afa9458cbff2dbe608..dfcf178988517d9e9afa5872938f94a273ad503f 100644 (file)
@@ -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]: