Author: bugman Date: Wed May 7 15:22:47 2008 New Revision: 6120 URL: http://svn.gna.org/viewcvs/relax?rev=6120&view=rev Log: Wrote the spin_id arg unit test for the deselect.reverse() user function. Modified: 1.3/test_suite/unit_tests/_prompt/test_deselect.py Modified: 1.3/test_suite/unit_tests/_prompt/test_deselect.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_deselect.py?rev=6120&r1=6119&r2=6120&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_prompt/test_deselect.py (original) +++ 1.3/test_suite/unit_tests/_prompt/test_deselect.py Wed May 7 15:22:47 2008 @@ -156,6 +156,19 @@ self.assertRaises(RelaxBoolError, self.deselect_fns.read, file='unresolved', change_all=data[1]) + def test_reverse_argfail_spin_id(self): + """The spin_id arg test of the deselect.reverse() user function.""" + + # Loop over the data types. + for data in 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.deselect_fns.reverse, spin_id=data[1]) + + def test_spin_argfail_spin_id(self): """The spin_id arg test of the deselect.spin() user function."""