Author: bugman Date: Wed Nov 21 14:46:54 2007 New Revision: 3767 URL: http://svn.gna.org/viewcvs/relax?rev=3767&view=rev Log: Implemented the errors arg unit test for the align_tensor.init() user function. Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py Modified: branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py?rev=3767&r1=3766&r2=3767&view=diff ============================================================================== --- branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py (original) +++ branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py Wed Nov 21 14:46:54 2007 @@ -27,7 +27,7 @@ # relax module imports. from data_types import return_data_types from prompt.align_tensor import Align_tensor -from relax_errors import RelaxIntError, RelaxListFloatError +from relax_errors import RelaxBinError, RelaxIntError, RelaxListFloatError from test_suite.unit_tests.align_tensor_testing_base import Align_tensor_base_class # Set the variable sys.ps3 (this is required by the user functions). @@ -77,4 +77,17 @@ self.assertRaises(RelaxIntError, self.align_tensor_fns.init, param_types=data[1]) + def test_init_argfail_errors(self): + """The proper failure of the align_tensor.init() user function for the errors argument.""" + # Loop over the data types. + for data in return_data_types(): + # Catch the bin arguments, and skip them. + if data[0] == 'bin': + continue + + # The argument test. + self.assertRaises(RelaxBinError, self.align_tensor_fns.init, errors=data[1]) + + +