Author: bugman Date: Wed May 7 15:08:17 2008 New Revision: 6117 URL: http://svn.gna.org/viewcvs/relax?rev=6117&view=rev Log: Added 2 arg unit tests for the deselect.spin() 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=6117&r1=6116&r2=6117&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:08:17 2008 @@ -154,3 +154,29 @@ # The argument test. self.assertRaises(RelaxBoolError, self.deselect_fns.read, file='unresolved', change_all=data[1]) + + + def test_spin_argfail_spin_id(self): + """The spin_id arg test of the deselect.spin() 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.spin, spin_id=data[1]) + + + def test_spin_argfail_change_all(self): + """The change_all arg test of the deselect.spin() user function.""" + + # Loop over the data types. + for data in DATA_TYPES: + # Catch the bool arguments, and skip them. + if data[0] == 'bool': + continue + + # The argument test. + self.assertRaises(RelaxBoolError, self.deselect_fns.spin, change_all=data[1])