Add some isvalidatom() test cases with "null" and missing category.
authorZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 09:37:28 +0000 (09:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 31 May 2008 09:37:28 +0000 (09:37 -0000)
(trunk r10519)

svn path=/main/branches/2.1.2/; revision=10520

tests/portage_dep/test_isvalidatom.py

index cf82f144f3d412fbac980fa182f79788ca994ee5..3f8c35ef6bdcf818840e95626e08bb013a2644bb 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]: