def testNoClass(self):
        """
        testNoClass : Verify friendly error message when no class in file
        """
        recipestr1 = ""
        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 = ("file/component 'test' did not contain a valid recipe")
            assert(m.args[0].endswith(errstr))
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/recipetest.py/RecipeTest.testNoClass/operator `+` -> `/`