Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 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)
Пример #6
0
 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)