Author: bugman Date: Tue Nov 20 11:00:43 2007 New Revision: 3633 URL: http://svn.gna.org/viewcvs/relax?rev=3633&view=rev Log: Implemented the mol_to arg unit test for the molecule.copy() 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=3633&r1=3632&r2=3633&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:00:43 2007 @@ -91,17 +91,17 @@ self.assertRaises(RelaxNoneStrError, self.molecule_fns.copy, pipe_to=data[1], mol_from='#Old mol', mol_to='#New mol2') - def test_copy_argfail_spin_to(self): - """Test the proper failure of the spin.copy() user function for the spin_to argument.""" - - # Loop over the data types. - for data in return_data_types(): - # Catch the None and str arguments, and skip them. - if data[0] == 'None' or data[0] == 'str': - continue - - # The argument test. - self.assertRaises(RelaxNoneStrError, self.spin_fns.copy, spin_from='#Old mol:1@111', spin_to=data[1]) + def test_copy_argfail_mol_to(self): + """Test the proper failure of the molecule.copy() user function for the mol_to 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.copy, mol_from='#Old mol', mol_to=data[1]) def test_create_argfail_spin_num(self):