Author: bugman Date: Tue Nov 20 11:24:23 2007 New Revision: 3638 URL: http://svn.gna.org/viewcvs/relax?rev=3638&view=rev Log: Implemented the mol_id arg unit test for the molecule.rename() user function. Modified: 1.3/test_suite/unit_tests/prompt/test_molecule.py Modified: 1.3/test_suite/unit_tests/prompt/test_molecule.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_molecule.py?rev=3638&r1=3637&r2=3638&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/prompt/test_molecule.py (original) +++ 1.3/test_suite/unit_tests/prompt/test_molecule.py Tue Nov 20 11:24:23 2007 @@ -143,17 +143,17 @@ self.assertRaises(RelaxNoneStrError, self.molecule_fns.display, mol_id=data[1]) - def test_rename_argfail_spin_id(self): - """Test the proper failure of the spin.rename() user function for the spin_id argument.""" - - # Loop over the data types. - for data in return_data_types(): - # Catch the str arguments, and skip them. - if data[0] == 'str': - continue - - # The argument test. - self.assertRaises(RelaxStrError, self.spin_fns.rename, spin_id=data[1]) + def test_rename_argfail_mol_id(self): + """Test the proper failure of the molecule.rename() user function for the mol_id argument.""" + + # Loop over the data types. + for data in return_data_types(): + # Catch the str arguments, and skip them. + if data[0] == 'str': + continue + + # The argument test. + self.assertRaises(RelaxStrError, self.molecule_fns.rename, mol_id=data[1]) def test_rename_argfail_new_name(self):