Package test_suite :: Package unit_tests :: Module residue_testing_base :: Class Residue_base_class
[hide private]
[frames] | no frames]

Class Residue_base_class

source code


Testing base class for 'prompt.residue' and corresponding 'generic_fns.mol_res_spin' 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 residue unit tests.
source code
 
setup_data(self)
Function for setting up some data for the unit tests.
source code
 
test_copy_residue_between_molecules(self)
Test the copying of the residue data between different molecules.
source code
 
test_copy_residue_between_pipes(self)
Test the copying of the residue data between different data pipes.
source code
 
test_copy_residue_between_pipes_fail_no_pipe(self)
Test the copying of the residue data between different data pipes.
source code
 
test_copy_residue_within_molecule(self)
Test the copying of the residue data within a single molecule.
source code
 
test_copy_residue_within_molecule_fail1(self)
The failure of copying residue data within a molecule of a non-existent residue.
source code
 
test_copy_residue_within_molecule_fail2(self)
The failure of copying residue data within a molecule to a residue which already exists.
source code
 
test_create_residue(self)
Test the creation of a residue.
source code
 
test_create_residue_fail(self)
Test the failure of residue creation (by supplying two residues with the same number).
source code
 
test_delete_residue_all(self)
Test the deletion of all residues.
source code
 
test_delete_residue_fail(self)
Test the failure of residue deletion when an atom id is supplied.
source code
 
test_delete_residue_name(self)
Test residue deletion using residue name identifiers.
source code
 
test_delete_residue_num(self)
Test residue deletion using residue number identifiers.
source code
 
test_delete_residue_shift(self)
Test the deletion of multiple residues.
source code
 
test_display_residue(self)
Test the display of residue information.
source code
 
test_display_residue_fail(self)
Test the failure of the display of residue information.
source code
 
test_name_residue(self)
Test the renaming of a residue.
source code
 
test_name_residue_many(self)
Test the renaming of multiple residues.
source code
 
test_name_residue_no_spin(self)
Test the failure of naming a residue when a spin id is given.
source code
 
test_number_residue(self)
Test the renumbering of a residue.
source code
 
test_number_residue_many_fail(self)
Test the numbering of multiple residues.
source code
 
test_number_residue_no_spin(self)
Test the failure of naming a residue when a spin id is given.
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 residue unit tests.

Overrides: unittest.case.TestCase.setUp

test_copy_residue_between_molecules(self)

source code 

Test the copying of the residue data between different molecules.

The function tested is both generic_fns.mol_res_spin.copy_residue() and prompt.residue.copy().

test_copy_residue_between_pipes(self)

source code 

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

The function tested is both generic_fns.mol_res_spin.copy_residue() and prompt.residue.copy().

test_copy_residue_between_pipes_fail_no_pipe(self)

source code 

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

The function tested is both generic_fns.mol_res_spin.copy_residue() and prompt.residue.copy().

test_copy_residue_within_molecule(self)

source code 

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

The function tested is both generic_fns.mol_res_spin.copy_residue() and prompt.residue.copy().

test_copy_residue_within_molecule_fail1(self)

source code 

The failure of copying residue data within a molecule of a non-existent residue.

The function tested is both generic_fns.mol_res_spin.copy_residue() and prompt.residue.copy().

test_copy_residue_within_molecule_fail2(self)

source code 

The failure of copying residue data within a molecule to a residue which already exists.

The function tested is both generic_fns.mol_res_spin.copy_residue() and prompt.residue.copy().

test_create_residue(self)

source code 

Test the creation of a residue.

The function tested is both generic_fns.mol_res_spin.create_residue() and prompt.residue.create().

test_create_residue_fail(self)

source code 

Test the failure of residue creation (by supplying two residues with the same number).

The function tested is both generic_fns.mol_res_spin.create_residue() and prompt.residue.create().

test_delete_residue_all(self)

source code 

Test the deletion of all residues.

The function tested is both generic_fns.mol_res_spin.delete_residue() and prompt.residue.delete().

test_delete_residue_fail(self)

source code 

Test the failure of residue deletion when an atom id is supplied.

The function tested is both generic_fns.mol_res_spin.delete_residue() and prompt.residue.delete().

test_delete_residue_name(self)

source code 

Test residue deletion using residue name identifiers.

The function tested is both generic_fns.mol_res_spin.delete_residue() and prompt.residue.delete().

test_delete_residue_num(self)

source code 

Test residue deletion using residue number identifiers.

The function tested is both generic_fns.mol_res_spin.delete_residue() and prompt.residue.delete().

test_delete_residue_shift(self)

source code 

Test the deletion of multiple residues.

The function tested is both generic_fns.mol_res_spin.delete_residue() and prompt.residue.delete().

test_display_residue(self)

source code 

Test the display of residue information.

The function tested is both generic_fns.mol_res_spin.display_residue() and prompt.residue.display().

test_display_residue_fail(self)

source code 

Test the failure of the display of residue information.

The function tested is both generic_fns.mol_res_spin.display_residue() and prompt.residue.display().

test_name_residue(self)

source code 

Test the renaming of a residue.

The function tested is both generic_fns.mol_res_spin.name_residue() and prompt.residue.name().

test_name_residue_many(self)

source code 

Test the renaming of multiple residues.

The function tested is both generic_fns.mol_res_spin.name_residue() and prompt.residue.name().

test_name_residue_no_spin(self)

source code 

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

The function tested is both generic_fns.mol_res_spin.name_residue() and prompt.residue.name().

test_number_residue(self)

source code 

Test the renumbering of a residue.

The function tested is both generic_fns.mol_res_spin.number_residue() and prompt.residue.number().

test_number_residue_many_fail(self)

source code 

Test the numbering of multiple residues.

The function tested is both generic_fns.mol_res_spin.number_residue() and prompt.residue.number().

test_number_residue_no_spin(self)

source code 

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

The function tested is both generic_fns.mol_res_spin.number_residue() and prompt.residue.number().