def test_bad_target_irr(self): list_of_nois = [Decimal('0.06'), Decimal('0.12'), Decimal('0.18')] return_factor = Decimal('0.5') return_coefficient = Decimal('0.03') target_irr = 'wrong' with self.assertRaises(AssertionError): valuation._list_of_surplus(list_of_nois, return_factor, return_coefficient, target_irr)
def test_zero_target_irr(self): list_of_nois = [Decimal('0.06'), Decimal('0.12'), Decimal('0.18')] return_factor = Decimal('0.5') return_coefficient = Decimal('0.03') target_irr = Decimal('0') self.assertEqual( valuation._list_of_surplus(list_of_nois, return_factor, return_coefficient, target_irr), [Decimal('0.06'), Decimal('0.09'), Decimal('0.12')])
def test_zero_target_irr(self): list_of_nois = [Decimal('0.06'), Decimal('0.12'), Decimal('0.18')] return_factor = Decimal('0.5') return_coefficient = Decimal('0.03') target_irr = Decimal('0') self.assertEqual(valuation._list_of_surplus(list_of_nois, return_factor, return_coefficient, target_irr), [Decimal('0.06'), Decimal('0.09'), Decimal('0.12')])