Author: bugman Date: Sun May 4 13:43:37 2008 New Revision: 6078 URL: http://svn.gna.org/viewcvs/relax?rev=6078&view=rev Log: Set up some objects containing the molecule, residue, and spin fns of generic_fns.mol_res_spin. Modified: branches/mol_res_spin_module_rename/test_suite/unit_tests/_generic_fns/test_mol_spin_res.py Modified: branches/mol_res_spin_module_rename/test_suite/unit_tests/_generic_fns/test_mol_spin_res.py URL: http://svn.gna.org/viewcvs/relax/branches/mol_res_spin_module_rename/test_suite/unit_tests/_generic_fns/test_mol_spin_res.py?rev=6078&r1=6077&r2=6078&view=diff ============================================================================== --- branches/mol_res_spin_module_rename/test_suite/unit_tests/_generic_fns/test_mol_spin_res.py (original) +++ branches/mol_res_spin_module_rename/test_suite/unit_tests/_generic_fns/test_mol_spin_res.py Sun May 4 13:43:37 2008 @@ -32,8 +32,44 @@ from test_suite.unit_tests.spin_testing_base import Spin_base_class +class Molecule: + """Class for creating an object containing the molecule specific fns.""" + + copy = mol_res_spin.copy_molecule + create = mol_res_spin.create_molecule + delete = mol_res_spin.delete_molecule + display = mol_res_spin.display_molecule + name = mol_res_spin.name_molecule + +class Residue: + """Class for creating an object containing the residue specific fns.""" + + copy = mol_res_spin.copy_residue + create = mol_res_spin.create_residue + delete = mol_res_spin.delete_residue + display = mol_res_spin.display_residue + name = mol_res_spin.name_residue + number = mol_res_spin.number_residue + +class Spin: + """Class for creating an object containing the spin specific fns.""" + + copy = mol_res_spin.copy_spin + create = mol_res_spin.create_spin + delete = mol_res_spin.delete_spin + display = mol_res_spin.display_spin + name = mol_res_spin.name_spin + number = mol_res_spin.number_spin + + + class Test_mol_res_spin(Molecule_base_class, Residue_base_class, Spin_base_class, TestCase): """Unit tests for the functions of the 'generic_fns.mol_res_spin' module.""" + + # Set up the molecule, residue, and spin objects. + molecule = Molecule() + residue = Residue() + spin = Spin() def setUp(self): """Set up some molecules, residues, and spins for testing."""