- assert_almost_equal(actual, desired, decimal = 7, err_msg = '', verbose = 1)
Raise an assertion if two items are not
equal. I think this should be part of unittest.py
- assert_approx_equal(actual, desired, significant = 7, err_msg = '', verbose = 1)
Raise an assertion if two items are not
equal. I think this should be part of unittest.py
Approximately equal is defined as the number of significant digits
correct
- assert_array_almost_equal(x, y, decimal = 6, err_msg = '')
- assert_array_equal(x, y, err_msg = '')
- assert_array_less(x, y, err_msg = '')
- assert_equal(actual, desired, err_msg = '', verbose = 1)
Raise an assertion if two items are not
equal. I think this should be part of unittest.py
- rand(args)
Returns an array of random numbers with the given shape.
This only uses the standard library, so it is useful for testing purposes.
- runstring(astr, dict)