Package test_suite :: Package unit_tests :: Package _pipe_control :: Module test_mol_res_spin :: Class Test_mol_res_spin
[hide private]
[frames] | no frames]

Class Test_mol_res_spin

source code


Unit tests for the functions of the 'pipe_control.mol_res_spin' module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Set up some molecules, residues, and spins for testing.
source code
 
test_count_spins(self)
Test that the number of spins can be properly counted.
source code
 
test_count_no_spins(self)
Test that the number of spins (zero) can be properly counted.
source code
 
test_count_spins_no_pipe(self)
Test that the counting of the number of spins raises an error when no pipe exists.
source code
 
test_exists_mol_res_spin_data(self)
Test the function for determining if molecule-residue-spin data exists.
source code
 
test_exists_mol_res_spin_data_single_mol(self)
Determine if molecule-residue-spin data exists (with data for a single molecule).
source code
 
test_exists_mol_res_spin_data_single_res_name(self)
Determine if molecule-residue-spin data exists (when a single residue is named).
source code
 
test_exists_mol_res_spin_data_single_res_num(self)
Determine if molecule-residue-spin data exists (when a single residue is numbered).
source code
 
test_exists_mol_res_spin_data_single_spin_name(self)
Determine if molecule-residue-spin data exists (when a single spin is named).
source code
 
test_exists_mol_res_spin_data_single_spin_num(self)
Determine if molecule-residue-spin data exists (when a single spin is numbered).
source code
 
test_exists_mol_res_spin_data_no_data(self)
Determine if molecule-residue-spin data exists when no data exists.
source code
 
test_exists_mol_res_spin_data_no_pipe(self)
Determine if molecule-residue-spin data exists when no data pipe exists.
source code
 
test_format_info_full1(self)
Test the format_info_full() function for all combinations of input.
source code
 
test_generate_spin_id_data_array1(self)
First test of the spin ID generation function.
source code
 
test_generate_spin_id_data_array2(self)
Second test of the spin ID generation function.
source code
 
test_generate_spin_id_data_array3(self)
Third test of the spin ID generation function.
source code
 
test_generate_spin_id_data_array4(self)
Fourth test of the spin ID generation function.
source code
 
test_generate_spin_id_data_array5(self)
Fifth test of the spin ID generation function.
source code
 
test_generate_spin_id_data_array6(self)
Sixth test of the spin ID generation function.
source code
 
test_molecule_loop(self)
Test the proper operation of the molecule loop with molecule selection.
source code
 
test_molecule_loop_no_data(self)
Test the proper operation of the molecule loop when no data is present.
source code
 
test_molecule_loop_no_pipe(self)
Test the proper operation of the molecule loop when no data pipe is present.
source code
 
test_molecule_loop_no_selection(self)
Test the proper operation of the molecule loop when no selection is present.
source code
 
test_residue_loop(self)
Test the proper operation of the residue loop with residue selection.
source code
 
test_residue_loop_no_data(self)
Test the proper operation of the residue loop when no data is present.
source code
 
test_residue_loop_no_pipe(self)
Test the proper operation of the residue loop when no data pipe is present.
source code
 
test_residue_loop_no_selection(self)
Test the proper operation of the residue loop when no selection is present.
source code
 
test_return_molecule(self)
Test the function for returning the desired molecule data container.
source code
 
test_return_molecule_pipe_fail(self)
Test the failure of the function for returning the desired molecule data container.
source code
 
test_return_residue(self)
Test the function for returning the desired residue data container.
source code
 
test_return_residue_pipe_fail(self)
Test the failure of the function for returning the desired residue data container.
source code
 
test_return_single_residue_info(self)
Test the function for returning the desired residue data container.
source code
 
test_return_single_residue_info_fail(self)
Test the failure of the function for returning the desired residue data container.
source code
 
test_return_spin(self)
Test the function for returning the desired spin data container.
source code
 
test_return_spin_pipe_fail(self)
Test the failure of the function for returning the desired spin data container.
source code
 
test_spin_loop(self)
Test the proper operation of the spin loop with spin selection.
source code
 
test_spin_loop_boolean_or(self)
Test the operation of the spin loop with the selection "#Ap4Aase:Glu | #RNA@C8".
source code
 
test_spin_loop_multiatom(self)
Test the proper operation of the spin loop with spin selection '@NH|@N5'.
source code
 
test_spin_loop_no_data(self)
Test the proper operation of the spin loop when no data is present.
source code
 
test_spin_loop_no_pipe(self)
Test the proper operation of the spin loop when no data pipe is present.
source code
 
test_spin_loop_no_selection(self)
Test the proper operation of the spin loop when no selection is present.
source code
 
test_spin_loop_single_spin(self)
Test the operation of the spin loop with the single spin selection '#Ap4Aase:Glu@63'.
source code
 
test_spin_loop_wildcard(self)
Test the proper operation of the spin loop with wildcard spin selection '@N*'.
source code
 
test_boolean_and_selection(self)
Test boolean and in mol-res-spin selections.
source code
 
test_boolean_complex_selection(self)
Test complex boolean mol-res-spin selections.
source code
 
fixme_test_boolean_parenthesis_selection(self)
Test complex boolean mol-res-spin selections with parenthesis.
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 some molecules, residues, and spins for testing.

Overrides: unittest.case.TestCase.setUp

test_count_spins(self)

source code 

Test that the number of spins can be properly counted.

The function tested is pipe_control.mol_res_spin.count_spins().

test_count_no_spins(self)

source code 

Test that the number of spins (zero) can be properly counted.

The function tested is pipe_control.mol_res_spin.count_spins().

test_count_spins_no_pipe(self)

source code 

Test that the counting of the number of spins raises an error when no pipe exists.

The function tested is pipe_control.mol_res_spin.count_spins().

test_exists_mol_res_spin_data(self)

source code 

Test the function for determining if molecule-residue-spin data exists.

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_exists_mol_res_spin_data_single_mol(self)

source code 

Determine if molecule-residue-spin data exists (with data for a single molecule).

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_exists_mol_res_spin_data_single_res_name(self)

source code 

Determine if molecule-residue-spin data exists (when a single residue is named).

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_exists_mol_res_spin_data_single_res_num(self)

source code 

Determine if molecule-residue-spin data exists (when a single residue is numbered).

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_exists_mol_res_spin_data_single_spin_name(self)

source code 

Determine if molecule-residue-spin data exists (when a single spin is named).

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_exists_mol_res_spin_data_single_spin_num(self)

source code 

Determine if molecule-residue-spin data exists (when a single spin is numbered).

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_exists_mol_res_spin_data_no_data(self)

source code 

Determine if molecule-residue-spin data exists when no data exists.

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_exists_mol_res_spin_data_no_pipe(self)

source code 

Determine if molecule-residue-spin data exists when no data pipe exists.

The function tested is pipe_control.mol_res_spin.exists_mol_res_spin_data().

test_generate_spin_id_data_array1(self)

source code 

First test of the spin ID generation function.

The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().

test_generate_spin_id_data_array2(self)

source code 

Second test of the spin ID generation function.

The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().

test_generate_spin_id_data_array3(self)

source code 

Third test of the spin ID generation function.

The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().

test_generate_spin_id_data_array4(self)

source code 

Fourth test of the spin ID generation function.

The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().

test_generate_spin_id_data_array5(self)

source code 

Fifth test of the spin ID generation function.

The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().

test_generate_spin_id_data_array6(self)

source code 

Sixth test of the spin ID generation function.

The function tested is pipe_control.mol_res_spin.generate_spin_id_data_array().

test_molecule_loop(self)

source code 

Test the proper operation of the molecule loop with molecule selection.

The function tested is pipe_control.mol_res_spin.molecule_loop().

test_molecule_loop_no_data(self)

source code 

Test the proper operation of the molecule loop when no data is present.

The function tested is pipe_control.mol_res_spin.molecule_loop().

test_molecule_loop_no_pipe(self)

source code 

Test the proper operation of the molecule loop when no data pipe is present.

The function tested is pipe_control.mol_res_spin.molecule_loop().

test_molecule_loop_no_selection(self)

source code 

Test the proper operation of the molecule loop when no selection is present.

The function tested is pipe_control.mol_res_spin.molecule_loop().

test_residue_loop(self)

source code 

Test the proper operation of the residue loop with residue selection.

The function tested is pipe_control.mol_res_spin.residue_loop().

test_residue_loop_no_data(self)

source code 

Test the proper operation of the residue loop when no data is present.

The function tested is pipe_control.mol_res_spin.residue_loop().

test_residue_loop_no_pipe(self)

source code 

Test the proper operation of the residue loop when no data pipe is present.

The function tested is pipe_control.mol_res_spin.residue_loop().

test_residue_loop_no_selection(self)

source code 

Test the proper operation of the residue loop when no selection is present.

The function tested is pipe_control.mol_res_spin.residue_loop().

test_return_molecule(self)

source code 

Test the function for returning the desired molecule data container.

The function tested is pipe_control.mol_res_spin.return_molecule().

test_return_molecule_pipe_fail(self)

source code 

Test the failure of the function for returning the desired molecule data container.

The function tested is pipe_control.mol_res_spin.return_molecule().

test_return_residue(self)

source code 

Test the function for returning the desired residue data container.

The function tested is pipe_control.mol_res_spin.return_residue().

test_return_residue_pipe_fail(self)

source code 

Test the failure of the function for returning the desired residue data container.

The function tested is pipe_control.mol_res_spin.return_residue().

test_return_single_residue_info(self)

source code 

Test the function for returning the desired residue data container.

The function tested is pipe_control.mol_res_spin.return_single_residue_info().

test_return_single_residue_info_fail(self)

source code 

Test the failure of the function for returning the desired residue data container.

The function tested is pipe_control.mol_res_spin.return_single_residue_info().

test_return_spin(self)

source code 

Test the function for returning the desired spin data container.

The function tested is pipe_control.mol_res_spin.return_spin().

test_return_spin_pipe_fail(self)

source code 

Test the failure of the function for returning the desired spin data container.

The function tested is pipe_control.mol_res_spin.return_spin().

test_spin_loop(self)

source code 

Test the proper operation of the spin loop with spin selection.

The function tested is pipe_control.mol_res_spin.spin_loop().

test_spin_loop_boolean_or(self)

source code 

Test the operation of the spin loop with the selection "#Ap4Aase:Glu | #RNA@C8".

The function tested is pipe_control.mol_res_spin.spin_loop().

test_spin_loop_multiatom(self)

source code 

Test the proper operation of the spin loop with spin selection '@NH|@N5'.

The function tested is pipe_control.mol_res_spin.spin_loop().

test_spin_loop_no_data(self)

source code 

Test the proper operation of the spin loop when no data is present.

The function tested is pipe_control.mol_res_spin.spin_loop().

test_spin_loop_no_pipe(self)

source code 

Test the proper operation of the spin loop when no data pipe is present.

The function tested is pipe_control.mol_res_spin.spin_loop().

test_spin_loop_no_selection(self)

source code 

Test the proper operation of the spin loop when no selection is present.

The function tested is pipe_control.mol_res_spin.spin_loop().

test_spin_loop_single_spin(self)

source code 

Test the operation of the spin loop with the single spin selection '#Ap4Aase:Glu@63'.

The function tested is pipe_control.mol_res_spin.spin_loop().

test_spin_loop_wildcard(self)

source code 

Test the proper operation of the spin loop with wildcard spin selection '@N*'.

The function tested is pipe_control.mol_res_spin.spin_loop().