aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/test_cds.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/test_cds.py')
-rw-r--r--python/tests/test_cds.py4
1 files changed, 2 insertions, 2 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)