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_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" ])