def test_sanitize_ingredients(self):
		urls = mock_yummly.search('turkeysandwich')[0]

		ingredients = urls[2]

		self.assertEqual('cooked turkey', sanitize_ingredients.sanitize(ingredients[0]))
		self.assertEqual('celery ribs,', sanitize_ingredients.sanitize(ingredients[1]))
		self.assertEqual('small onion,', sanitize_ingredients.sanitize(ingredients[2]))
		self.assertEqual('hard-cooked eggs,', sanitize_ingredients.sanitize(ingredients[3]))
		self.assertEqual('mayonnaise', sanitize_ingredients.sanitize(ingredients[4]))
		self.assertEqual('salt', sanitize_ingredients.sanitize(ingredients[5]))
		self.assertEqual('pepper', sanitize_ingredients.sanitize(ingredients[6]))
		self.assertEqual('hamburger buns,', sanitize_ingredients.sanitize(ingredients[7]))
	def test_search_results(self):
		urls = mock_yummly.search('turkeysandwich')[0]

		self.assertEqual('Hot Turkey Salad Sandwiches', urls[0])
		self.assertEqual('http://allrecipes.com/Recipe/hot-turkey-salad-sandwiches/detail.aspx', urls[1])

		ingredients = urls[2]
		self.assertEqual('2 cups diced cooked turkey', ingredients[0])
		self.assertEqual('2 celery ribs, diced', ingredients[1])
		self.assertEqual('1 small onion, diced', ingredients[2])
		self.assertEqual('2 hard-cooked eggs, chopped', ingredients[3])
		self.assertEqual('3/4 cup mayonnaise', ingredients[4])
		self.assertEqual('1/2 teaspoon salt', ingredients[5])
		self.assertEqual('1/4 teaspoon pepper', ingredients[6])
		self.assertEqual('6 hamburger buns, split', ingredients[7])

		self.assertEqual('http://i2.yummly.com/Hot-Turkey-Salad-Sandwiches-Allrecipes.s.png', urls[3])
		self.assertEqual('30 Min', urls[4])
		self.assertEqual('6 servings', urls[5])