test_aide.equality.assert_array_equal_msg¶
- test_aide.equality.assert_array_equal_msg(actual, expected, msg_tag, print_actual_and_expected=False, **kwargs)[source]¶
Compares actual and expected np.arrays and asserts equality. Calls np.testing.assert_array_equal but presents msg_tag, and optionally actual and expected arrays, in addition to any other exception info.
- Parameters
actual (numpy array) – The actual array.
expected (numpy array) – The expected array.
msg_tag (string) – A tag for the assert error message.
print_actual_and_expected (Boolean) – print the actual and expected arrays along with error message tag
**kwargs – Keyword args passed to np.testing.assert_array_equal.