numpy.testing.assert_allclose(actual, desired, rtol=1e-07, atol=0, equal_nan=False, err_msg='', verbose=True) [source]
Raises an AssertionError if two objects are not equal up to desired tolerance. The test is equivalent to allclose(actual, desired, rtol, atol). It compares the difference between actual and desired to atol + rtol * abs(desired). New in version 1.5.0. Parameters:
actual : array_like Array obtained. desired : array_like Array desired. rtol : float, optional Relative t