def test_amount_repr_3(self): """Test __repr__ method for the class Amount""" cocktail = Cocktail("", "", "") ingredient = Ingredient("") amount = Amount(cocktail, ingredient, "3 oz.") amount_name = amount.__repr__() self.assertEqual( "<Amount [%r-|---|-%r]>" % (amount.c_data, amount.i_data), amount_name)
def test_amount_repr_1(self): """Test __repr__ method for the class Amount""" cocktail = Cocktail("Moscow Mule", "Cup", "Moscow Mule Recipe") ingredient = Ingredient("Rum") amount = Amount(cocktail, ingredient, "2 oz.") amount_name = amount.__repr__() self.assertEqual( "<Amount [%r-|---|-%r]>" % (amount.c_data, amount.i_data), amount_name)
def test_amount_repr_4(self): """Test __repr__ method for the class Amount""" cocktail = Cocktail("Aqua", "Bottle", "Aqua Recipe", "static/images/cocktails/Aqua.jpg") ingredient = Ingredient("Berries", "static/images/ingredients/Berries.jpg") amount = Amount(cocktail, ingredient, "3 oz.") amount_name = amount.__repr__() self.assertEqual( "<Amount [%r-|---|-%r]>" % (amount.c_data, amount.i_data), amount_name )
def test_amount_repr_3(self): """Test __repr__ method for the class Amount""" cocktail = Cocktail("", "", "") ingredient = Ingredient("") amount = Amount(cocktail, ingredient, "3 oz.") amount_name = amount.__repr__() self.assertEqual( "<Amount [%r-|---|-%r]>" % (amount.c_data, amount.i_data), amount_name )
def test_amount_repr_1(self): """Test __repr__ method for the class Amount""" cocktail = Cocktail("Moscow Mule", "Cup", "Moscow Mule Recipe") ingredient = Ingredient("Rum") amount = Amount(cocktail, ingredient, "2 oz.") amount_name = amount.__repr__() self.assertEqual( "<Amount [%r-|---|-%r]>" % (amount.c_data, amount.i_data), amount_name )
def test_amount_repr_4(self): """Test __repr__ method for the class Amount""" cocktail = Cocktail("Aqua", "Bottle", "Aqua Recipe", "static/images/cocktails/Aqua.jpg") ingredient = Ingredient("Berries", "static/images/ingredients/Berries.jpg") amount = Amount(cocktail, ingredient, "3 oz.") amount_name = amount.__repr__() self.assertEqual( "<Amount [%r-|---|-%r]>" % (amount.c_data, amount.i_data), amount_name)