def test_list_recipes(self): recipes = lib.get_recipes() self.assertEquals(len(recipes), 3) self.assertEquals( recipes[1]['description'], 'Subversion Client installs subversion and some extra svn libs') self.assertEquals(recipes[2]['name'], 'subversion::server')
def list_recipes_detailed(): """Show information for all recipes""" for recipe in lib.get_recipes(cookbook_paths): lib.print_recipe(recipe)
def list_recipes(): """Show a list of all available recipes""" for recipe in lib.get_recipes(cookbook_paths): margin_left = lib.get_margin(len(recipe['name'])) print("{0}{1}{2}".format( recipe['name'], margin_left, recipe['description']))
def test_list_recipes(self): recipes = lib.get_recipes() self.assertEquals(len(recipes), 3) self.assertEquals(recipes[1]['description'], 'Subversion Client installs subversion and some extra svn libs') self.assertEquals(recipes[2]['name'], 'subversion::server')
def list_recipes(): """Show a list of all available recipes""" for recipe in lib.get_recipes(cookbook_paths): margin_left = lib.get_margin(len(recipe['name'])) print("{0}{1}{2}".format(recipe['name'], margin_left, recipe['description']))