Package test_suite :: Package unit_tests :: Module diffusion_tensor_testing_base :: Class Diffusion_tensor_base_class
[hide private]
[frames] | no frames]

Class Diffusion_tensor_base_class

source code


Base class for the tests of the diffusion tensor modules.

This includes both the 'prompt.diffusion_tensor' and 'generic_fns.diffusion_tensor' modules. The base class also contains many shared unit tests.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Set up for all the diffusion tensor unit tests.
source code
 
test_copy_pull_ellipsoid(self)
Test the copying of an ellipsoid diffusion tensor (pulling the data from another pipe).
source code
 
test_copy_pull_sphere(self)
Test the copying of a spherical diffusion tensor (pulling the data from another pipe).
source code
 
test_copy_pull_spheroid(self)
Test the copying of a spheroidal diffusion tensor (pulling the data from another pipe).
source code
 
test_copy_push_ellipsoid(self)
Test the copying of an ellipsoid diffusion tensor (pushing the data from another pipe).
source code
 
test_copy_push_sphere(self)
Test the copying of a spherical diffusion tensor (pushing the data from another pipe).
source code
 
test_copy_push_spheroid(self)
Test the copying of a spheroidal diffusion tensor (pushing the data from another pipe).
source code
 
test_delete(self)
Test the deletion of the diffusion tensor data structure.
source code
 
test_delete_fail_no_data(self)
Failure of deletion of the diffusion tensor data structure when there is no data.
source code
 
test_delete_fail_no_pipe(self)
Failure of deletion of the diffusion tensor data structure when there is no data pipe.
source code
 
test_display_ellipsoid(self)
Display an ellipsoidal diffusion tensor.
source code
 
test_display_fail_no_data(self)
Failure of the display of the diffusion tensor data structure when there is no data.
source code
 
test_display_fail_no_pipe(self)
Failure of the display of the diffusion tensor data structure when there is no data pipe.
source code
 
test_display_sphere(self)
Display a spherical diffusion tensor.
source code
 
test_display_spheroid(self)
Display a spheroidal diffusion tensor.
source code
 
test_init_bad_angle_units(self)
Test the failure of setting up a diffusion tensor when angle_units is incorrect.
source code
 
test_init_ellipsoid(self)
Test the setting up of a ellipsoid diffusion tensor.
source code
 
test_init_sphere(self)
Test the setting up of a spherical diffusion tensor.
source code
 
test_init_spheroid(self)
Test the setting up of a spheroidal diffusion tensor.
source code

Inherited from base_classes.UnitTestCase: tearDown

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

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 up for all the diffusion tensor unit tests.

Overrides: unittest.case.TestCase.setUp

test_copy_pull_ellipsoid(self)

source code 

Test the copying of an ellipsoid diffusion tensor (pulling the data from another pipe).

The functions tested are both generic_fns.diffusion_tensor.copy() and prompt.diffusion_tensor.copy().

test_copy_pull_sphere(self)

source code 

Test the copying of a spherical diffusion tensor (pulling the data from another pipe).

The functions tested are both generic_fns.diffusion_tensor.copy() and prompt.diffusion_tensor.copy().

test_copy_pull_spheroid(self)

source code 

Test the copying of a spheroidal diffusion tensor (pulling the data from another pipe).

The functions tested are both generic_fns.diffusion_tensor.copy() and prompt.diffusion_tensor.copy().

test_copy_push_ellipsoid(self)

source code 

Test the copying of an ellipsoid diffusion tensor (pushing the data from another pipe).

The functions tested are both generic_fns.diffusion_tensor.copy() and prompt.diffusion_tensor.copy().

test_copy_push_sphere(self)

source code 

Test the copying of a spherical diffusion tensor (pushing the data from another pipe).

The functions tested are both generic_fns.diffusion_tensor.copy() and prompt.diffusion_tensor.copy().

test_copy_push_spheroid(self)

source code 

Test the copying of a spheroidal diffusion tensor (pushing the data from another pipe).

The functions tested are both generic_fns.diffusion_tensor.copy() and prompt.diffusion_tensor.copy().

test_delete(self)

source code 

Test the deletion of the diffusion tensor data structure.

The functions tested are both generic_fns.diffusion_tensor.delete() and prompt.diffusion_tensor.delete().

test_delete_fail_no_data(self)

source code 

Failure of deletion of the diffusion tensor data structure when there is no data.

The functions tested are both generic_fns.diffusion_tensor.delete() and prompt.diffusion_tensor.delete().

test_delete_fail_no_pipe(self)

source code 

Failure of deletion of the diffusion tensor data structure when there is no data pipe.

The functions tested are both generic_fns.diffusion_tensor.delete() and prompt.diffusion_tensor.delete().

test_display_ellipsoid(self)

source code 

Display an ellipsoidal diffusion tensor.

The functions tested are both generic_fns.diffusion_tensor.display() and prompt.diffusion_tensor.display().

test_display_fail_no_data(self)

source code 

Failure of the display of the diffusion tensor data structure when there is no data.

The functions tested are both generic_fns.diffusion_tensor.display() and prompt.diffusion_tensor.display().

test_display_fail_no_pipe(self)

source code 

Failure of the display of the diffusion tensor data structure when there is no data pipe.

The functions tested are both generic_fns.diffusion_tensor.display() and prompt.diffusion_tensor.display().

test_display_sphere(self)

source code 

Display a spherical diffusion tensor.

The functions tested are both generic_fns.diffusion_tensor.display() and prompt.diffusion_tensor.display().

test_display_spheroid(self)

source code 

Display a spheroidal diffusion tensor.

The functions tested are both generic_fns.diffusion_tensor.display() and prompt.diffusion_tensor.display().

test_init_bad_angle_units(self)

source code 

Test the failure of setting up a diffusion tensor when angle_units is incorrect.

The functions tested are both generic_fns.diffusion_tensor.init() and prompt.diffusion_tensor.init().

test_init_ellipsoid(self)

source code 

Test the setting up of a ellipsoid diffusion tensor.

The functions tested are both generic_fns.diffusion_tensor.init() and prompt.diffusion_tensor.init().

test_init_sphere(self)

source code 

Test the setting up of a spherical diffusion tensor.

The functions tested are both generic_fns.diffusion_tensor.init() and prompt.diffusion_tensor.init().

test_init_spheroid(self)

source code 

Test the setting up of a spheroidal diffusion tensor.

The functions tested are both generic_fns.diffusion_tensor.init() and prompt.diffusion_tensor.init().