Package test_suite :: Package unit_tests :: Module molecule_testing_base :: Class Molecule_base_class
[hide private]
[frames] | no frames]

Class Molecule_base_class

source code


Testing base class for 'prompt.molecule' and corresponding 'generic_fns.mol_spin_res' fns.

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 molecule unit tests.
source code
 
setup_data(self)
Function for setting up some data for the unit tests.
source code
 
test_copy_molecule_between_pipes(self)
Test the copying of the molecule data between different data pipes.
source code
 
test_copy_molecule_between_pipes_fail_no_pipe(self)
Test the failure of copying of the molecule data between different data pipes.
source code
 
test_copy_molecule_within_pipe(self)
Test the copying of the molecule data within a single data pipe.
source code
 
test_copy_molecule_within_pipe_fail(self)
Test the failure of the copying of the molecule data within a molecule.
source code
 
test_create_molecule(self)
Test the creation of a molecule data structure.
source code
 
test_create_molecule_fail(self)
Test the failure of molecule creation by supplying two molecules with the same name.
source code
 
test_delete_molecule(self)
Test molecule deletion.
source code
 
test_delete_molecule_all(self)
Test the deletion of all molecules.
source code
 
test_delete_molecule_fail(self)
Test the failure of molecule deletion when a residue or spin id is supplied.
source code
 
test_display_molecule(self)
Test the display of molecular information.
source code
 
test_display_molecule_fail(self)
Test the failure of the display of molecule information.
source code
 
test_name_molecule(self)
Test the renaming of a molecule.
source code
 
test_name_molecule_fail(self)
Test the failure of naming a molecule when a residue or spin id is given.
source code
 
test_name_molecule_many_fail(self)
Test the failure of the naming of multiple molecules to the same name.
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 molecule unit tests.

Overrides: unittest.case.TestCase.setUp

test_copy_molecule_between_pipes(self)

source code 

Test the copying of the molecule data between different data pipes.

The function tested is both generic_fns.mol_res_spin.copy_molecule() and prompt.molecule.copy().

test_copy_molecule_between_pipes_fail_no_pipe(self)

source code 

Test the failure of copying of the molecule data between different data pipes.

The function tested is both generic_fns.mol_res_spin.copy_molecule() and prompt.molecule.copy().

test_copy_molecule_within_pipe(self)

source code 

Test the copying of the molecule data within a single data pipe.

The function tested is both generic_fns.mol_res_spin.copy_molecule() and prompt.molecule.copy().

test_copy_molecule_within_pipe_fail(self)

source code 

Test the failure of the copying of the molecule data within a molecule.

The function tested is both generic_fns.mol_res_spin.copy_molecule() and prompt.molecule.copy().

test_create_molecule(self)

source code 

Test the creation of a molecule data structure.

The function tested is both generic_fns.mol_res_spin.create_molecule() and prompt.molecule.create().

test_create_molecule_fail(self)

source code 

Test the failure of molecule creation by supplying two molecules with the same name.

The function tested is both generic_fns.mol_res_spin.create_molecule() and prompt.molecule.create().

test_delete_molecule(self)

source code 

Test molecule deletion.

The function tested is both generic_fns.mol_res_spin.delete_molecule() and prompt.molecule.delete().

test_delete_molecule_all(self)

source code 

Test the deletion of all molecules.

The function tested is both generic_fns.mol_res_spin.delete_molecule() and prompt.molecule.delete().

test_delete_molecule_fail(self)

source code 

Test the failure of molecule deletion when a residue or spin id is supplied.

The function tested is both generic_fns.mol_res_spin.delete_molecule() and prompt.molecule.delete().

test_display_molecule(self)

source code 

Test the display of molecular information.

The function tested is both generic_fns.mol_res_spin.display_molecule() and prompt.molecule.display().

test_display_molecule_fail(self)

source code 

Test the failure of the display of molecule information.

The function tested is both generic_fns.mol_res_spin.display_molecule() and prompt.molecule.display().

test_name_molecule(self)

source code 

Test the renaming of a molecule.

The function tested is both generic_fns.mol_res_spin.name_molecule() and prompt.molecule.name().

test_name_molecule_fail(self)

source code 

Test the failure of naming a molecule when a residue or spin id is given.

The function tested is both generic_fns.mol_res_spin.name_molecule() and prompt.molecule.name().

test_name_molecule_many_fail(self)

source code 

Test the failure of the naming of multiple molecules to the same name.

The function tested is both generic_fns.mol_res_spin.name_molecule() and prompt.molecule.name().