def testEmptyReleaseString(self):
        recipe = """
class Empty(PackageRecipe):
    name = 'empty'
    version = ''
"""
        repos = self.openRepository()
        origDir = os.getcwd()
        try:
            os.chdir(self.workDir)
            self.newpkg('empty')
            os.chdir('empty')
            self.writeFile('empty.recipe', recipe)
            self.logFilter.add()
            try:
                self.cookItem(repos, self.cfg, 'empty.recipe')
                self.fail("CookError not raised")
            except CookError, e:
                self.assertEqual(str(e), "unable to load recipe file "
                    "%s/empty.recipe:\nempty release string" % os.getcwd())
        finally:
            os.chdir(origDir)
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/recipetest.py/RecipeTest.testEmptyReleaseString/original