Author: bugman Date: Thu Sep 25 17:01:30 2008 New Revision: 7301 URL: http://svn.gna.org/viewcvs/relax?rev=7301&view=rev Log: Fixed the number arg unit test of spin.number(). 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=7301&r1=7300&r2=7301&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_prompt/test_spin.py (original) +++ 1.3/test_suite/unit_tests/_prompt/test_spin.py Thu Sep 25 17:01:30 2008 @@ -26,7 +26,7 @@ # relax module imports. from data import Relax_data_store; ds = Relax_data_store() from prompt.spin import Spin -from relax_errors import RelaxError, RelaxIntError, RelaxNoPipeError, RelaxNoneStrError, RelaxStrError +from relax_errors import RelaxError, RelaxIntError, RelaxNoneIntError, RelaxNoPipeError, RelaxNoneStrError, RelaxStrError from test_suite.unit_tests.spin_testing_base import Spin_base_class # Unit test imports. @@ -202,9 +202,9 @@ # Loop over the data types. for data in DATA_TYPES: - # Catch the int and bin arguments, and skip them. - if data[0] == 'int' or data[0] == 'bin': - continue - - # The argument test. - self.assertRaises(RelaxIntError, self.spin_fns.number, spin_id='@111', number=data[1]) + # Catch the None, int and bin arguments, and skip them. + if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin': + continue + + # The argument test. + self.assertRaises(RelaxNoneIntError, self.spin_fns.number, spin_id='@111', number=data[1])