summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-25 23:50:16 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-25 23:50:16 +0000
commit299e621e4c94af84b9a60f87af6813ab070e3d67 (patch)
tree415077215a2fc3151b26030f0216f1d1398885f8
parente1845d6a8d5eb1e056b1831d1f0fe37b614c1ed7 (diff)
downloadportage-299e621e4c94af84b9a60f87af6813ab070e3d67.tar.gz
portage-299e621e4c94af84b9a60f87af6813ab070e3d67.tar.bz2
portage-299e621e4c94af84b9a60f87af6813ab070e3d67.zip
Add test case for consecutive hyphens.
svn path=/main/trunk/; revision=13186
-rw-r--r--pym/portage/tests/dep/test_isvalidatom.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/tests/dep/test_isvalidatom.py b/pym/portage/tests/dep/test_isvalidatom.py
index 6565b96a7..a10d730b3 100644
--- a/pym/portage/tests/dep/test_isvalidatom.py
+++ b/pym/portage/tests/dep/test_isvalidatom.py
@@ -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: