aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/tests/test_cds.py4
-rw-r--r--python/tests/test_yieldcurve.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/python/tests/test_cds.py b/python/tests/test_cds.py
index da0133b9..aaeb6f68 100644
--- a/python/tests/test_cds.py
+++ b/python/tests/test_cds.py
@@ -126,10 +126,10 @@ class TestSpreadCurve(unittest.TestCase):
self.assertAlmostEqual(a - b, upf)
def test_roundtrip(self):
- sc_copy = SpreadCurve.from_bytes(self.sc.as_buffer(True), True)
+ sc_copy = SpreadCurve.from_bytes(self.sc.as_bytes(True), True)
self.assertEqual(sc_copy.inspect(), self.sc.inspect())
self.assertEqual(sc_copy.full_ticker, self.sc.full_ticker)
- sc_copy = SpreadCurve.from_bytes(self.sc.as_buffer(False), False)
+ sc_copy = SpreadCurve.from_bytes(self.sc.as_bytes(False), False)
self.assertEqual(sc_copy.inspect(), self.sc.inspect())
self.assertEqual(sc_copy.full_ticker, self.sc.full_ticker)
diff --git a/python/tests/test_yieldcurve.py b/python/tests/test_yieldcurve.py
index d14d6d4d..ef1c3169 100644
--- a/python/tests/test_yieldcurve.py
+++ b/python/tests/test_yieldcurve.py
@@ -71,7 +71,7 @@ class TestYieldCurve(unittest.TestCase):
def test_sofr_curve(self):
yc = YC(evaluation_date=datetime.date(2022, 5, 9), curve_type="OIS")
jp_yc = ql_to_jp(yc)
- self.assertEqual(hash(jp_yc), -715350334549909076)
+ self.assertEqual(hash(jp_yc), -7819183656360586799)
if __name__ == "__main__":