core#
Created on Mon Jun 12 17:55:35 2023
@author: lorenzo
Classes
|
Create an instance of the class that will use the named test method when executed. |
- class DefermiTest(methodName='runTest')[source]#
Bases:
TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- assert_all_close(actual, desired, rtol=1e-07, atol=0, err_msg='', verbose=True)[source]#
Tests if two arrays are almost equal up to some relative or absolute tolerance.
- assert_object_almost_equal(actual, desired, rtol=1e-07, atol=0, err_msg='', verbose=True)[source]#
Custom assertion function to check if two objects are almost equal. Supports dictionaries, numbers (int, float), tuples, lists, str, bool and NoneType. Uses numpy.testing.assert_almost_equal for numerical comparisons.
- assert_str_content_equal(actual, desired, err_msg='', verbose=True)[source]#
Tests if two strings are equal, ignoring things like trailing spaces, etc.
- property structure#
- property test_files_path#
Path with test files (“./test_files”)