Package test_suite :: Package unit_tests :: Package _lib :: Package _dispersion :: Module test_it99 :: Class Test_it99
[hide private]
[frames] | no frames]

Class Test_it99

source code


Unit tests for the lib.dispersion.it99 relax module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Set up for all unit tests.
source code
 
calc_r2eff(self)
Calculate and check the R2eff values.
source code
tuple of float
param_conversion(self, pA=None, kex=None, dw=None, sfrq=None)
Convert the parameters.
source code
 
test_it99_no_rex1(self)
Test the r2eff_it99() function for no exchange when dw = 0.0.
source code
 
test_it99_no_rex2(self)
Test the r2eff_it99() function for no exchange when pA = 1.0.
source code
 
test_it99_no_rex3(self)
Test the r2eff_it99() function for no exchange when kex = 0.0.
source code
 
test_it99_no_rex4(self)
Test the r2eff_it99() function for no exchange when dw = 0.0 and pA = 1.0.
source code
 
test_it99_no_rex5(self)
Test the r2eff_it99() function for no exchange when dw = 0.0 and kex = 0.0.
source code
 
test_it99_no_rex6(self)
Test the r2eff_it99() function for no exchange when pA = 1.0 and kex = 0.0.
source code
 
test_it99_no_rex7(self)
Test the r2eff_it99() function for no exchange when dw = 0.0, pA = 1.0, and kex = 0.0.
source code
 
test_it99_no_rex8(self)
Test the r2eff_cr72() function for no exchange when kex = 1e19.
source code

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __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]

setUp(self)

source code 

Set up for all unit tests.

Overrides: unittest.case.TestCase.setUp

param_conversion(self, pA=None, kex=None, dw=None, sfrq=None)

source code 

Convert the parameters.

Parameters:
  • pA (float) - The population of state A.
  • kex (float) - The rate of exchange.
  • dw (float) - The chemical exchange difference between states A and B in ppm.
  • sfrq (float) - The spin Larmor frequencies in Hz.
Returns: tuple of float
The parameters {pB, dw_frq, tex}.