Package test_suite :: Package unit_tests :: Package _data :: Module test_align_tensor :: Class Test_align_tensor
[hide private]
[frames] | no frames]

Class Test_align_tensor

source code


Unit tests for the data.align_tensor relax module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
calc_objects(self, Axx, Ayy, Axy, Axz, Ayz)
Function for calculating the alignment tensor objects.
source code
 
setUp(self)
Set 'self.align_data' to an empty instance of the AlignTensorData class.
source code
 
test_append_sim(self)
Test the appending of Monte Carlo simulation alignment tensor parameters.
source code
 
test_set_Szz(self)
Test that the Szz parameter cannot be set.
source code
 
test_set_errors(self)
Test the setting of spheroidal diffusion tensor parameter errors.
source code
 
test_set_params(self)
Test the setting of alignment tensor parameters.
source code
 
test_set_sim(self)
Test the setting of Monte Carlo simulation alignment tensor parameters.
source code
 
test_set_Axx(self)
Test the setting of the Axx 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.align_data' to an empty instance of the AlignTensorData class.

Overrides: unittest.case.TestCase.setUp

test_append_sim(self)

source code 

Test the appending of Monte Carlo simulation alignment tensor parameters.

The following parameters will be appended to empty lists:

  • Axx: -16.6278 Hz
  • Ayy: 6.13037 Hz
  • Axy: 7.65639 Hz
  • Axz: -1.89157 Hz
  • Ayz: 19.2561 Hz

test_set_errors(self)

source code 

Test the setting of spheroidal diffusion tensor parameter errors.

The following parameter errors will be set:

  • Axx: 0.3 Hz
  • Ayy: 0.5 Hz
  • Axy: 0.4 Hz
  • Axz: 0.1 Hz
  • Ayz: 0.2 Hz

test_set_params(self)

source code 

Test the setting of alignment tensor parameters.

The following parameters will be set:

  • Axx: -16.6278 Hz
  • Ayy: 6.13037 Hz
  • Axy: 7.65639 Hz
  • Axz: -1.89157 Hz
  • Ayz: 19.2561 Hz

test_set_sim(self)

source code 

Test the setting of Monte Carlo simulation alignment tensor parameters.

Firstly the following parameters will be appended to empty lists:

  • Axx: -16.6278 Hz
  • Ayy: 6.13037 Hz
  • Axy: 7.65639 Hz
  • Axz: -1.89157 Hz
  • Ayz: 19.2561 Hz

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

  • Axx: 0.3 Hz
  • Ayy: 0.5 Hz
  • Axy: 0.4 Hz
  • Axz: 0.1 Hz
  • Ayz: 0.2 Hz