Skip to content

Commit

Permalink
adjust test value
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasibule committed Feb 19, 2024
1 parent c56cf14 commit a54a298
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_inflation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import unittest

from quantlib.indexes.inflation.australia import AUCPI
from quantlib.indexes.inflation.aucpi import AUCPI
from quantlib.time.date import Monthly, Months, Period, Date
from quantlib.time.api import ( UnitedKingdom, ModifiedFollowing, ActualActual,
Schedule, Actual365Fixed, Unadjusted )
Expand All @@ -31,7 +31,7 @@
class TestInflationIndex(unittest.TestCase):

def test_zero_index(self):
aucpi = AUCPI(Monthly, True, True)
aucpi = AUCPI(Monthly, True)
self.assertEqual(aucpi.name, "Australia CPI")
self.assertEqual(aucpi.frequency, Monthly)
self.assertEqual(aucpi.availability_lag, Period(2, Months))
Expand All @@ -51,7 +51,7 @@ def setUp(self):
ModifiedFollowing)
self.cpi_ts = ZeroInflationTermStructure()
self.yts = FlatForward(evaluation_date, 0.05, day_counter)
self.ii = UKRPI(False, self.cpi_ts)
self.ii = UKRPI(self.cpi_ts)
fix_data = [206.1, 207.3, 208.0, 208.9, 209.7, 210.9,
209.8, 211.4, 212.1, 214.0, 215.1, 216.8,
216.5, 217.2, 218.4, 217.7, 216,
Expand Down Expand Up @@ -139,7 +139,7 @@ def test_clean_price(self):
engine = DiscountingBondEngine(self.yts)
cpi_bond.set_pricing_engine(engine)
set_coupon_pricer(cpi_bond.cashflows, CPICouponPricer(self.yts))
storedPrice = 383.01816406
storedPrice = 383.04297558
calculated = cpi_bond.clean_price
self.assertAlmostEqual(storedPrice, calculated)

Expand Down

0 comments on commit a54a298

Please sign in to comment.