Package test_suite :: Package unit_tests :: Package _data :: Module test_diff_tensor :: Class Test_diff_tensor
[hide private]
[frames] | no frames]

Class Test_diff_tensor

source code


Unit tests for the data.diff_tensor relax module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
calc_spheroid_objects(self, tm, Da, theta, phi)
Function for calculating the spheroidal diffusion tensor objects.
source code
 
setUp(self)
Set 'self.diff_data' to an empty instance of the DiffTensorData class.
source code
 
test_append_spheroid_sim(self)
Test the appending of Monte Carlo simulation spheroidal diffusion tensor parameters.
source code
 
test_display(self)
Test that the contents of the diffusion tensor object can be displayed.
source code
 
test_set_Diso(self)
Test that the Diso parameter cannot be set.
source code
 
test_set_spheroid_errors(self)
Test the setting of spheroidal diffusion tensor parameter errors.
source code
 
test_set_spheroid_params(self)
Test the setting of spheroidal diffusion tensor parameters.
source code
 
test_set_spheroid_sim(self)
Test the setting of Monte Carlo simulation spheroidal diffusion tensor parameters.
source code
 
test_set_tm(self)
Test the setting of the tm parameter.
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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Set 'self.diff_data' to an empty instance of the DiffTensorData class.

Overrides: unittest.case.TestCase.setUp

test_append_spheroid_sim(self)

source code 

Test the appending of Monte Carlo simulation spheroidal diffusion tensor parameters.

The following parameters will be appended to empty lists:

  • tm: 8 ns
  • Da: -1e7
  • theta: 150 degrees
  • phi: 30 degrees

test_set_spheroid_errors(self)

source code 

Test the setting of spheroidal diffusion tensor parameter errors.

The following parameter errors will be set:

  • tm: 1 ns
  • Da: 1e3
  • theta: 3 degrees
  • phi: 5 degrees

test_set_spheroid_params(self)

source code 

Test the setting of spheroidal diffusion tensor parameters.

The following parameters will be set:

  • tm: 20 ns
  • Da: 2e6
  • theta: 60 degrees
  • phi: 290 degrees

test_set_spheroid_sim(self)

source code 

Test the setting of Monte Carlo simulation spheroidal diffusion tensor parameters.

Firstly the following parameters will be appended to empty lists:

  • tm: 2 ns
  • Da: 1e5
  • theta: 0 degrees
  • phi: 360 degrees

These MC sim values will then be explicity overwritten by setting the first elements of the lists to:

  • tm: 0.5 ns
  • Da: 3e5
  • theta: 2 degrees
  • phi: 0 degrees

test_set_tm(self)

source code 

Test the setting of the tm parameter.

The tm parameter will be set to 10 ns. The setting of tm should automatically create the Diso parameter.