def test_ingredient_repr_4(self): """Test __repr__ method for the class Ingredient""" name = "Berries" image = "static/images/ingredients/Berries.jpg" ingredient = Ingredient(name, image) ingredient_name = ingredient.__repr__() self.assertEqual("<Ingredient '%s'>" % ingredient.name, ingredient_name)
def test_ingredient_repr_1(self): """Test __repr__ method for the class Ingredient""" name = "Rum" ingredient = Ingredient(name) ingredient_name = ingredient.__repr__() self.assertEqual("<Ingredient '%s'>" % ingredient.name, ingredient_name)
def test_ingredient_repr_3(self): """Test __repr__ method for the class Ingredient""" name = "" ingredient = Ingredient(name) ingredient_name = ingredient.__repr__() self.assertEqual("<Ingredient ''>", ingredient_name)