Exemplo n.º 1
0
 def test_cocktail_repr_4(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail("Aqua", "Bottle", "Aqua Recipe", "static/images/cocktails/Aqua.jpg")
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail '%s'>" % cocktail.name, drink)
Exemplo n.º 2
0
 def test_cocktail_repr_2(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail(None, None, None, None)
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail None>", drink)
Exemplo n.º 3
0
 def test_cocktail_repr_3(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail("", "", "")
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail ''>", drink)
Exemplo n.º 4
0
 def test_cocktail_repr_1(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail("Vodka Sprite", "Glass", "Vodka Sprite Recipe")
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail '%s'>" % cocktail.name, drink)
Exemplo n.º 5
0
 def test_cocktail_repr_4(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail("Aqua", "Bottle", "Aqua Recipe",
                         "static/images/cocktails/Aqua.jpg")
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail '%s'>" % cocktail.name, drink)
Exemplo n.º 6
0
 def test_cocktail_repr_3(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail("", "", "")
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail ''>", drink)
Exemplo n.º 7
0
 def test_cocktail_repr_2(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail(None, None, None, None)
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail None>", drink)
Exemplo n.º 8
0
 def test_cocktail_repr_1(self):
     """Test __repr__ method for the class Cocktail"""
     cocktail = Cocktail("Vodka Sprite", "Glass", "Vodka Sprite Recipe")
     drink = cocktail.__repr__()
     self.assertEqual("<Cocktail '%s'>" % cocktail.name, drink)