Ejemplo n.º 1
0
 def test_total_income(self):
     my_store = Store("Ardes")
     new_laptop = Laptop('HP HackBook', 1000, 1243, 1000, 4)
     my_store.load_new_products(new_laptop, 20)
     my_store.sell_product(new_laptop)
     self.assertEqual(243, my_store.total_income())
 def test_total_income(self):
     my_store = Store("Ardes")
     new_laptop = Laptop('HP HackBook', 1000, 1243, 1000, 4)
     my_store.load_new_products(new_laptop, 20)
     my_store.sell_product(new_laptop)
     self.assertEqual(243, my_store.total_income())
Ejemplo n.º 3
0
 def test_sell_product_false(self):
     my_store = Store("Ardes")
     new_laptop = Laptop('HP HackBook', 1000, 1243, 1000, 4)
     my_store.load_new_products(new_laptop, 0)
     self.assertFalse(my_store.sell_product(new_laptop))
 def test_sell_product_false(self):
     my_store = Store("Ardes")
     new_laptop = Laptop('HP HackBook', 1000, 1243, 1000, 4)
     my_store.load_new_products(new_laptop, 0)
     self.assertFalse(my_store.sell_product(new_laptop))