def testBadVersionNumber(self):
        recipestr1 = """
class BadVersion(PackageRecipe):
    name = 'test'
    version = '0-0'
    clearBuildReqs()
    
    def setup(r):
        pass
"""

        self.assertRaises(RecipeFileError, self.buildRecipe, recipestr1, "BadVersion")
Verify that version numbers with - in them are disallowed
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/recipetest.py/RecipeTest.testBadVersionNumber