def test_load_named_recipe_ingredients_into_list(self): recipe_ingredients = load_recipe_ingredients_list( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "Gordon_Hamersley_s_Boned_Stuffed_Leg_of_Lamb_1.htm", []) self.assertEqual(recipe_ingredients.recipe_list,[ ["1", "1", "ea", "8-pound leg of lamb (weighed with the bone), boned and butterflied"], ["2", "6", "ea", "whole peppercorns"], ["3", "0", "ea", " Bones from the lamb"], ["4", "1", "bunch", "green kale"], ["5", "1/2", "large", "onion unpeeled"], ["6", "3", "tablespoons", "olive oil"], ["7", "1/4", "cup", " olive oil"], ["8", "2", "ea", "carrots, scrubbed but unpeeled"], ["9", "3", "ea", "sweet red peppers"], ["10", "2", "ea", "stalks of celery with leaves"], ["11", "3", "ea", "ounces jumbo Kalamata olives pitted (about 18 olives)"], ["12", "1 1/2", "tablespoons", "tomato paste"], ["13", "1", "ea", "shallot"], ["14", "1 1/2", "cups", "dry red wine"], ["15", "1", "teaspoon", "dried thyme"], ["16", "3", "cups", "water or chicken stock"], ["17", "1", "teaspoon", "dried oregano"], ["18", "4", "ea", "cloves garlic Approximately"], ["19", "0", "ea", " Kosher salt"], ["20", "1", "ea", "bay leaf"], ["21", "0", "ea", " Cracked black pepper"] ])
def test_write_named_recipe_ingredients_from_list(self): recipe_ingredients_original = load_recipe_ingredients_list( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "Gordon_Hamersley_s_Boned_Stuffed_Leg_of_Lamb_1.htm", []) recipe_ingredients = write_ingredients( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "Gordon_Hamersley_s_Boned_Stuffed_Leg_of_Lamb_1.htm", "C:\\Temp\\", recipe_ingredients_original.recipe_list) self.assertEqual(recipe_ingredients.recipe_ingredient_list,[ " 1 ea 8-pound leg of lamb (weighed with the bone), boned and butterflied", " 6 ea whole peppercorns", " Bones from the lamb", " 1 bunch green kale", " 1/2 large onion unpeeled", " 3 T olive oil", " 1/4 c olive oil", " 2 ea carrots, scrubbed but unpeeled", " 3 ea sweet red peppers", " 2 ea stalks of celery with leaves", " 3 ea ounces jumbo Kalamata olives pitted (about 18 olives)", " 1 1/2 T tomato paste", " 1 ea shallot", " 1 1/2 c dry red wine", " 1 t dried thyme", " 3 c water or chicken stock", " 1 t dried oregano", " 4 ea cloves garlic Approximately" , " Kosher salt", " 1 ea bay leaf", " Cracked black pepper" ])
def test_load_second_named_recipe_ingredients_into_list(self): recipe_ingredients = load_recipe_ingredients_list( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "Ham_Biscuits_-_Gourmet_February_1995_Jessica_B__Harris_3.htm", []) self.assertEqual(recipe_ingredients.recipe_list,[ ["1", "20", "ea", "silver dollar-size biscuits"], ["2", "1", "tablespoon", "baking powder"], ["3", "0", "ea", " spicy prepared mustard to taste"], ["4", "1", "teaspoon", "salt"], ["5", "0", "ea", " freshly grated horseradish to taste"], ["6", "1", "tablespoon", "sugar"], ["7", "20", "ea", "pieces thinly sliced baked ham"], ["8", "1/2", "cup", "milk"], ["9", "0", "ea", "SILVER DOLLAR SIZED BISCUITS"], ["10", "1/4", "cup", "milk"], ["11", "2", "cups", "all-purpose flour"] ])
def test_write_second_named_recipe_ingredients_from_list(self): recipe_ingredients_original = load_recipe_ingredients_list( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "Ham_Biscuits_-_Gourmet_February_1995_Jessica_B__Harris_3.htm", []) recipe_ingredients = write_ingredients( "C:\Documents and Settings\All Users\Documents\My BigOven Recipes\Publish", "Ham_Biscuits_-_Gourmet_February_1995_Jessica_B__Harris_3.htm", "C:\\Temp\\", recipe_ingredients_original.recipe_list) self.assertEqual(recipe_ingredients.recipe_ingredient_list,[ " 20 ea silver dollar-size biscuits", " 1 T baking powder", " spicy prepared mustard to taste", " 1 t salt", " freshly grated horseradish to taste", " 1 T sugar", " 20 ea pieces thinly sliced baked ham", " 1/2 c milk", " SILVER DOLLAR SIZED BISCUITS", " 1/4 c milk", " 2 c all-purpose flour" ])