Add test case for consecutive hyphens. (trunk r13186)
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Mar 2009 04:30:39 +0000 (04:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Mar 2009 04:30:39 +0000 (04:30 -0000)
svn path=/main/branches/2.1.6/; revision=13215

pym/portage/tests/dep/test_isvalidatom.py

index 6565b96a7b84f32b3418a8af020f2899bba82dde..a10d730b360aa3bbeca0fcb2dfe093df9957f9b2 100644 (file)
@@ -64,6 +64,9 @@ class IsValidAtom(TestCase):
                          ( "=null/portage-2.1*", True ),
                          ( "=foo/bar-123-1", True ),
                          ( "=foo/bar-123-1-r1", True ),
+                         ( "=foo/bar--baz-1-r1", False ),
+                         ( "=foo/bar-baz--1-r1", False ),
+                         ( "=foo/bar-baz-1--r1", False ),
                ]
 
                for test in tests: