def execute(self): self.cost = _landbos.engineeringCost(self.nTurbines, self.farmSize)
def test_engineering2(self): farmSize = 190.0 # changed to trigger the if condition cost = _landbos.engineeringCost(self.nTurbines, farmSize) self.assertAlmostEqual(1035725, cost, delta=0.5)
def test_engineering(self): cost = _landbos.engineeringCost(self.nTurbines, self.farmSize) self.assertAlmostEqual(1197400, cost, delta=0.5)