Author: bugman Date: Tue Nov 20 10:36:38 2007 New Revision: 3622 URL: http://svn.gna.org/viewcvs/relax?rev=3622&view=rev Log: Added a unit test for the proper failure of the spin.rename() user function for the spin_id arg. 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=3622&r1=3621&r2=3622&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/prompt/test_spin.py (original) +++ 1.3/test_suite/unit_tests/prompt/test_spin.py Tue Nov 20 10:36:38 2007 @@ -165,5 +165,18 @@ self.assertRaises(RelaxNoneStrError, self.spin_fns.display, spin_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]) + +