Author: bugman Date: Sun Nov 18 23:55:54 2007 New Revision: 3605 URL: http://svn.gna.org/viewcvs/relax?rev=3605&view=rev Log: Wrote a unit test for the proper failure of the spin.copy() user function pipe_to argument. Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_spin.py?rev=3605&r1=3604&r2=3605&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/prompt/test_spin.py (original) +++ 1.3/test_suite/unit_tests/prompt/test_spin.py Sun Nov 18 23:55:54 2007 @@ -74,3 +74,20 @@ # The argument test. self.assertRaises(RelaxStrError, self.spin_fns.copy, spin_from=data[1], spin_to='#Old mol:2') + + + def test_copy_argfail_pipe_to(self): + """Test the proper failure of the spin.copy() user function for the pipe_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, pipe_to=data[1], spin_from='#Old mol:1@111', spin_to='#Old mol:2') + + +