assert_almost_equalopen in new window (actual, desired[, …])Raises an AssertionError if two items are not equal up to desired precision. assert_approx_equalopen in new window (actual, desired[, …])Raises an AssertionError if two items are not equal up to significant digits. assert_array_almost_equalopen in new window (x, y[, decimal, …])Raises an AssertionError if two objects are not equal up to desired precision. assert_allcloseopen in new window (actual, desired[, rtol, …])Raises an AssertionError if two objects are not equal up to desired tolerance. assert_array_almost_equal_nulpopen in new window (x, y[, nulp])Compare two arrays relatively to their spacing. assert_array_max_ulpopen in new window (a, b[, maxulp, dtype])Check that all items of arrays differ in at most N Units in the Last Place. assert_array_equalopen in new window (x, y[, err_msg, verbose])Raises an AssertionError if two array_like objects are not equal. assert_array_lessopen in new window (x, y[, err_msg, verbose])Raises an AssertionError if two array_like objects are not ordered by less than. assert_equalopen in new window (actual, desired[, err_msg, verbose])Raises an AssertionError if two objects are not equal. assert_raisesopen in new window (exception_class, callable, …)Fail unless an exception of class exception_class is thrown by callable when invoked with arguments args and keyword arguments kwargs. assert_raises_regexopen in new window (exception_class, …)Fail unless an exception of class exception_class and with message that matches expected_regexp is thrown by callable when invoked with arguments args and keyword arguments kwargs. assert_warnsopen in new window (warning_class, *args, **kwargs)Fail unless the given callable throws the specified warning. assert_string_equalopen in new window (actual, desired)Test if two strings are equal.