core#

Created on Mon Jun 12 17:55:35 2023

@author: lorenzo

Classes

DefermiTest([methodName])

Create an instance of the class that will use the named test method when executed.

class DefermiTest(methodName='runTest')[source]#

Bases: TestCase

Create 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.

get_testfile_path(filename)[source]#
property structure#
property test_files_path#

Path with test files (“./test_files”)