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.
This commit is contained in:
Eddie Hebert
2014-04-14 16:00:38 -04:00
parent 76e4334d64
commit 12f6b95982
+1 -1
View File
@@ -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,))