def testBadActionFormat(self):
        recipestr = """
class BadFormat(PackageRecipe):
    name = 'test'
    version = '0'
    clearBuildReqs()
    
    def setup(self):
        self.Install("%(foo)/bar", "baz")
"""
        self.logFilter.add()
        self.assertRaises(CookError, self.buildRecipe, recipestr, 
                          "BadFormat", prep=True)
        self.logFilter.remove()
        self.logFilter.compare((
            'error: invalid macro substitution in "%(foo)/bar", missing "s"?',
        ))
verify that a recipe that includes an action with a bad format
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/recipetest.py/RecipeTest.testBadActionFormat