def test_load_second_named_xml_recipe_ingredients_into_list(self): recipe_ingredients = load_xml_recipe_ingredients_list( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "Beignets_-TechieVampire.xml", []) self.assertEqual(recipe_ingredients.recipe_list,[ ["2", "cups", "all purpose flour"], ["1", "teaspoon", "salt"], ["1", "tablespoon", "baking powder"], ["1", "teaspoon", "ground cinnamon"], ["1", "", "medium sized egg"], ["3", "tablespoons", "sugar"], ["1", "cup", "milk"], ["1/4", "teaspoon", "vanilla extract"], ["1", "quart", "oil for deep frying"], ["0", "", "Confectioners\xe2\x80\x99 sugar"] ])
def test_load_named_xml_recipe_ingredients_into_list(self): recipe_ingredients = load_xml_recipe_ingredients_list( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "_Victoria's_Pumpkin_Bread_(From__The_Dairy_Hollow_House_Cookbook__by_Crescent_Dragonwagon_with_Jan_Brown,_Macmillan_Publishing_Company).xml", []) self.assertEqual(recipe_ingredients.recipe_list,[ ["2", "teaspoons", "ground cinnamon"], ["2", "teaspoons", "baking powder"], ["1", "teaspoon", "nutmeg"], ["1", "teaspoon", "baking soda"], ["1", "teaspoon", "salt"], ["1/2", "teaspoon", "ground cloves"], ["1/4", "teaspoon", "ground ginger"], ["1", "dash", "allspice"], ["6", "cups", "unbleached white flour"], ["1", "cup", "mild vegetable oil"], ["1/2", "cup", "yogurt"], ["4", "", "eggs"], ["3", "cups", "sugar"], ["2 1/2", "cups", "unsweetened pumpkin puree"], ["1", "cup", "chopped black walnuts"] ])