diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/tests/test_yieldcurve.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/tests/test_yieldcurve.py b/python/tests/test_yieldcurve.py index b225e632..2160bbfe 100644 --- a/python/tests/test_yieldcurve.py +++ b/python/tests/test_yieldcurve.py @@ -65,7 +65,8 @@ class TestYieldCurve(unittest.TestCase): evaluation_date = datetime.date(2021, 7, 14) old_curve = YC(evaluation_date=evaluation_date) new_curve = USDMarkitYieldCurve(evaluation_date) - self.assertEquals(old_curve.data, new_curve._yc.data) + for d, df in zip(old_curve.dates, old_curve.data): + self.assertEqual(df, new_curve._yc.discount(d)) if __name__ == "__main__": |
