Author: bugman Date: Sun Dec 9 18:16:21 2007 New Revision: 4150 URL: http://svn.gna.org/viewcvs/relax?rev=4150&view=rev Log: Implemented the spin_id unit test for the value.set() user function. Modified: 1.3/test_suite/unit_tests/_prompt/test_value.py Modified: 1.3/test_suite/unit_tests/_prompt/test_value.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_value.py?rev=4150&r1=4149&r2=4150&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_prompt/test_value.py (original) +++ 1.3/test_suite/unit_tests/_prompt/test_value.py Sun Dec 9 18:16:21 2007 @@ -26,7 +26,7 @@ # relax module imports. from data import Data as relax_data_store from prompt.value import Value -from relax_errors import RelaxListFloatError, RelaxNoneFloatListError, RelaxNoneStrListError +from relax_errors import RelaxListFloatError, RelaxNoneFloatListError, RelaxNoneStrError, RelaxNoneStrListError from test_suite.unit_tests.value_testing_base import Value_base_class # Unit test imports. @@ -75,3 +75,16 @@ # The argument test. else: self.assertRaises(RelaxNoneStrListError, self.value_fns.set, param=data[1], val=None) + + + def test_set_argfail_spin_id(self): + """The spin_id arg test of the value.set() 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.value_fns.set, spin_id=data[1])