Add more test cases.
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Sep 2009 05:54:39 +0000 (05:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Sep 2009 05:54:39 +0000 (05:54 -0000)
svn path=/main/trunk/; revision=14253

pym/portage/tests/dep/test_isvalidatom.py

index 87d3d95ec6fd498ac35c4e76eecc08344d6d71bf..da91a8cfacce360251dbb18b51286d8caa49974c 100644 (file)
@@ -70,9 +70,12 @@ class IsValidAtom(TestCase):
                          ( "null/portage-2.1*", False ),
                          ( "app-doc/php-docs-20071125", False),
                          ( "app-doc/php-docs-20071125-r2", False),
+                         ( "=foo/bar-1-r1-1-r1", False ),
+                         ( "foo/-z-1", False ),
 
                        # These are invalid because pkg name must not end in hyphen
                        # followed by numbers
+                         ( "=foo/bar-1-r1-1-r1", False ),
                          ( "=foo/bar-123-1", False ),
                          ( "=foo/bar-123-1*", False ),
                          ( "foo/bar-123", False ),