Package test_suite :: Package unit_tests :: Package _target_functions :: Module test_relax_fit :: Class Test_relax_fit
[hide private]
[frames] | no frames]

Class Test_relax_fit

source code


Unit tests for the target_functions.relax_fit relax C module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
__init__(self, methodName='runTest')
Skip the tests if the C modules are non-functional.
source code
 
setUp(self)
Create a number of objects for the calculation and testing of the relaxation curve-fitting equations.
source code
 
test_func_exp(self)
Unit test for the value returned by the func_exp() function at the minimum.
source code
 
test_dfunc_exp(self)
Unit test for the gradient returned by the dfunc_exp() function at the minimum.
source code
 
test_dfunc_exp_off_minimum(self)
Unit test for the gradient returned by the dfunc_exp() function at a position away from the minimum.
source code
 
test_d2func_exp(self)
Unit test for the Hessian returned by the d2func_exp() function at the minimum.
source code
 
test_d2func_exp_off_minimum(self)
Unit test for the Hessian returned by the d2func_exp() function at a position away from the minimum.
source code
 
test_jacobian_exp(self)
Unit test for the Jacobian returned by the jacobian_exp() function at the minimum.
source code
 
test_jacobian_chi2_exp(self)
Unit test for the Jacobian returned by the jacobian_chi2_exp() function at the minimum.
source code
 
test_jacobian_chi2_exp_off_minimum(self)
Unit test for the Jacobian returned by the jacobian_chi2_exp() function at a position away from the minimum.
source code
 
test_jacobian_exp_off_minimum(self)
Unit test for the Jacobian returned by the jacobian_exp() function at a position away from the minimum.
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest, tearDown

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, methodName='runTest')
(Constructor)

source code 

Skip the tests if the C modules are non-functional.

Parameters:
  • methodName (str) - The name of the test.
Overrides: object.__init__

setUp(self)

source code 

Create a number of objects for the calculation and testing of the relaxation curve-fitting equations.

Overrides: unittest.case.TestCase.setUp

test_dfunc_exp_off_minimum(self)

source code 

Unit test for the gradient returned by the dfunc_exp() function at a position away from the minimum.

This uses the data from test_suite/shared_data/curve_fitting/numeric_gradient/integrate.log.

test_d2func_exp(self)

source code 

Unit test for the Hessian returned by the d2func_exp() function at the minimum.

This uses the data from test_suite/shared_data/curve_fitting/numeric_gradient/Hessian.log.

test_d2func_exp_off_minimum(self)

source code 

Unit test for the Hessian returned by the d2func_exp() function at a position away from the minimum.

This uses the data from test_suite/shared_data/curve_fitting/numeric_gradient/Hessian.log.

test_jacobian_exp(self)

source code 

Unit test for the Jacobian returned by the jacobian_exp() function at the minimum.

This uses the data from test_suite/shared_data/curve_fitting/numeric_gradient/Hessian.log.

test_jacobian_chi2_exp(self)

source code 

Unit test for the Jacobian returned by the jacobian_chi2_exp() function at the minimum.

This uses the data from test_suite/shared_data/curve_fitting/numeric_gradient/jacobian_chi2.log.

test_jacobian_chi2_exp_off_minimum(self)

source code 

Unit test for the Jacobian returned by the jacobian_chi2_exp() function at a position away from the minimum.

This uses the data from test_suite/shared_data/curve_fitting/numeric_gradient/jacobian_chi2.log.

test_jacobian_exp_off_minimum(self)

source code 

Unit test for the Jacobian returned by the jacobian_exp() function at a position away from the minimum.

This uses the data from test_suite/shared_data/curve_fitting/numeric_gradient/Hessian.log.