예제 #1
0
 def test_update_wood_price(self):
     price = House()
     price.create_door(2, 2)
     price.update_wood_price(40)
     self.assertEqual(160, price.get_door_price("wood"))
예제 #2
0
 def test_update_metal_price(self):
     price = House()
     price.create_door(2, 2)
     price.update_metal_price(15)
     self.assertEqual(60, price.get_door_price("metal"))
예제 #3
0
 def test_get_door_price(self):
     price = House()
     price.create_door(2, 2)
     self.assertEqual(40, price.get_door_price("wood"))