@@ -49,8 +49,6 @@ def test_poly():
4949
5050 coeffs = fitted_curve .curve_fit .coeffs
5151
52- print (fitted_curve )
53-
5452 assert round (coeffs [0 ]* 1e7 , 4 ) == 4.1581
5553 assert round (coeffs [1 ], 4 ) == 0.0641
5654 assert round (coeffs [2 ], 4 ) == 0.2034
@@ -68,8 +66,6 @@ def test_nelson_siegel():
6866 fitted_curve = BondParametricYieldCurve (
6967 settle_dt , bonds , ylds , curve_fit_method )
7068
71- print (fitted_curve )
72-
7369 assert round (fitted_curve .curve_fit .beta_1 , 3 ) == - 0.094
7470 assert round (fitted_curve .curve_fit .beta_2 , 3 ) == 0.092
7571 assert round (fitted_curve .curve_fit .beta_3 , 3 ) == 0.259
@@ -79,14 +75,12 @@ def test_nelson_siegel():
7975########################################################################################
8076
8177
82- def test_nelson_siegel_svensson ():
78+ def test_svensson ():
8379
8480 curve_fit_method = CurveFitSvensson ()
8581 fitted_curve = BondParametricYieldCurve (
8682 settle_dt , bonds , ylds , curve_fit_method )
8783
88- print (fitted_curve )
89-
9084 assert round (fitted_curve .curve_fit .beta_1 , 4 ) == - 0.6137
9185 assert round (fitted_curve .curve_fit .beta_2 , 4 ) == + 0.6121
9286 assert round (fitted_curve .curve_fit .beta_3 , 4 ) == 0.6353
0 commit comments