Author: bugman Date: Tue Nov 20 10:56:42 2007 New Revision: 3630 URL: http://svn.gna.org/viewcvs/relax?rev=3630&view=rev Log: Implemented the mol_from 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=3630&r1=3629&r2=3630&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 10:56:42 2007 @@ -62,11 +62,11 @@ continue # The argument test. - self.assertRaises(RelaxNoneStrError, self.molecule_fns.copy, pipe_from=data[1], mol_from='#Old mol:1@111', mol_to='#Old mol:2') - - - def test_copy_argfail_spin_from(self): - """Test the proper failure of the spin.copy() user function for the spin_from argument.""" + self.assertRaises(RelaxNoneStrError, self.molecule_fns.copy, pipe_from=data[1], mol_from='#Old mol', mol_to='#Old mol') + + + def test_copy_argfail_mol_from(self): + """Test the proper failure of the molecule.copy() user function for the mol_from argument.""" # Loop over the data types. for data in return_data_types(): @@ -75,7 +75,7 @@ continue # The argument test. - self.assertRaises(RelaxStrError, self.spin_fns.copy, spin_from=data[1], spin_to='#Old mol:2') + self.assertRaises(RelaxStrError, self.molecule_fns.copy, mol_from=data[1], mol_to='#Old mol') def test_copy_argfail_pipe_to(self):