Package test_suite :: Package unit_tests :: Module align_tensor_testing_base :: Class Align_tensor_base_class
[hide private]
[frames] | no frames]

Class Align_tensor_base_class

source code


Base class for the tests of the alignment tensor modules.

This includes both the 'prompt.align_tensor' and 'pipe_control.align_tensor' modules. This 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 alignment tensor unit tests.
source code
 
test_copy_fail(self)
Test the failure of copying of an alignment tensor (target and source are the same).
source code
 
test_copy_pull(self)
Test the copying of an alignment tensor (pulling the data from another pipe).
source code
 
test_copy_push(self)
Test the copying of an alignment tensor (pushing the data from another pipe).
source code
 
test_delete(self)
Test the deletion of the alignment tensor data structure.
source code
 
test_delete_fail_no_data(self)
Failure of deletion of the alignment tensor data structure when there is no data.
source code
 
test_delete_fail_no_pipe(self)
Failure of deletion of the alignment tensor data structure when there is no data pipe.
source code
 
test_display(self)
Display an alignment tensor.
source code
 
test_display_fail_no_data(self)
Failure of the display of the alignment tensor data structure when there is no data.
source code
 
test_display_fail_no_pipe(self)
Failure of the display of the alignment tensor data structure when there is no data pipe.
source code
 
test_init(self)
Test the setting up of an alignment tensor.
source code
 
test_init_bad_angle_units(self)
Test the failure of setting up a alignment tensor when angle_units is incorrect.
source code
 
test_matrix_angles_identity(self)
Test the matrix angles for a 5x5 identity matrix.
source code
 
test_svd_identity(self)
Test the SVD and condition number for a 5x5 identity matrix.
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, _diffThreshold

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Set up for all the alignment tensor unit tests.

Overrides: unittest.case.TestCase.setUp

test_copy_fail(self)

source code 

Test the failure of copying of an alignment tensor (target and source are the same).

The functions tested are both pipe_control.align_tensor.copy() and prompt.align_tensor.copy().

test_copy_pull(self)

source code 

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

The functions tested are both pipe_control.align_tensor.copy() and prompt.align_tensor.copy().

test_copy_push(self)

source code 

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

The functions tested are both pipe_control.align_tensor.copy() and prompt.align_tensor.copy().

test_delete(self)

source code 

Test the deletion of the alignment tensor data structure.

The functions tested are both pipe_control.align_tensor.delete() and prompt.align_tensor.delete().

test_delete_fail_no_data(self)

source code 

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

The functions tested are both pipe_control.align_tensor.delete() and prompt.align_tensor.delete().

test_delete_fail_no_pipe(self)

source code 

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

The functions tested are both pipe_control.align_tensor.delete() and prompt.align_tensor.delete().

test_display(self)

source code 

Display an alignment tensor.

The functions tested are both pipe_control.align_tensor.display() and prompt.align_tensor.display().

test_display_fail_no_data(self)

source code 

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

The functions tested are both pipe_control.align_tensor.display() and prompt.align_tensor.display().

test_display_fail_no_pipe(self)

source code 

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

The functions tested are both pipe_control.align_tensor.display() and prompt.align_tensor.display().

test_init(self)

source code 

Test the setting up of an alignment tensor.

The functions tested are both pipe_control.align_tensor.init() and prompt.align_tensor.init().

test_init_bad_angle_units(self)

source code 

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

The functions tested are both pipe_control.align_tensor.init() and prompt.align_tensor.init().

test_matrix_angles_identity(self)

source code 

Test the matrix angles for a 5x5 identity matrix.

The functions tested are both pipe_control.align_tensor.matrix_angles() and prompt.align_tensor.matrix_angles().

test_svd_identity(self)

source code 

Test the SVD and condition number for a 5x5 identity matrix.

The functions tested are both pipe_control.align_tensor.svd() and prompt.align_tensor.svd().