Author: bugman Date: Wed Nov 21 14:45:17 2007 New Revision: 3765 URL: http://svn.gna.org/viewcvs/relax?rev=3765&view=rev Log: Implemented the param_types 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=3765&r1=3764&r2=3765&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:45:17 2007 @@ -59,7 +59,20 @@ continue # The argument test. - self.assertRaises(RelaxListFloatError, self.align_tensor_fns.copy, params=data[1]) + self.assertRaises(RelaxListFloatError, self.align_tensor_fns.init, params=data[1]) - + def test_init_argfail_param_types(self): + """The proper failure of the align_tensor.init() user function for the param_types argument.""" + + # Loop over the data types. + for data in return_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.align_tensor_fns.init, param_types=data[1]) + + +