MAINT: Use numpy testing method instead of assertTrue.

So that when the test fails, the comparison is in a more readable
format.
This commit is contained in:
Eddie Hebert
2013-07-08 17:30:48 -04:00
parent ab0d07d8d0
commit 5fb837bf37
+1 -1
View File
@@ -371,4 +371,4 @@ class TestTALIB(TestCase):
talib_data[key] = data[key][0].values
talib_data['close'] = data['price'][0].values
expected_result = talib_fn(talib_data, **t.call_kwargs)[-1]
self.assertTrue(np.allclose(talib_result, expected_result))
np.testing.assert_allclose(talib_result, expected_result)