def testBadNames(self):
        """
        testBadNames : Verify error message if package name starts with a non-letter
        """
        recipestr1 = """
class BadName(PackageRecipe):
    name = '+test'
    version = '0'
    clearBuildReqs()

    def setup(r):
        pass
"""
        d = tempfile.mkdtemp(dir=self.workDir)
        os.chdir(d)
        self.writeFile('test.recipe', recipestr1)
        try:
            RecipeLoader(d + '/test.recipe', self.cfg)
        except RecipeFileError, m:
            errstr = ('Error in recipe file \"test.recipe\": package '
                      'name must start with an ascii letter or digit.')
            assert(m.args[0].endswith(errstr))
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/recipetest.py/RecipeTest.testBadNames/original