From 12f6b95982f427ddd5d0d0d2217cf60b21c7010e Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Mon, 14 Apr 2014 16:00:38 -0400 Subject: [PATCH] TST: Standardize order of test assert params. So that the np.assert_almost_equals messages have the correct ACTUAL and DESIRED values in all messages. --- tests/risk/test_risk_cumulative.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/risk/test_risk_cumulative.py b/tests/risk/test_risk_cumulative.py index 6c5ebcec..a60561cc 100644 --- a/tests/risk/test_risk_cumulative.py +++ b/tests/risk/test_risk_cumulative.py @@ -69,8 +69,8 @@ class TestRisk(unittest.TestCase): def test_sharpe_06(self): for dt, value in answer_key.RISK_CUMULATIVE.sharpe.iterkv(): np.testing.assert_almost_equal( - value, self.cumulative_metrics_06.metrics.sharpe[dt], + value, decimal=2, err_msg="Mismatch at %s" % (dt,))