コード例 #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())
コード例 #2
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())
コード例 #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))
コード例 #4
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))