Author: bugman Date: Fri Dec 21 15:11:18 2007 New Revision: 4236 URL: http://svn.gna.org/viewcvs/relax?rev=4236&view=rev Log: Implemented the basis_set arg unit test for the align_tensor.matrix_angles() 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=4236&r1=4235&r2=4236&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 Fri Dec 21 15:11:18 2007 @@ -211,6 +211,22 @@ self.assertRaises(RelaxBinError, self.align_tensor_fns.init, tensor='Pf1', params=(0.0, 0.0, 0.0, 0.0, 0.0), errors=data[1]) + def test_matrix_angles_argfail_basis_set(self): + """The proper failure of the align_tensor.matrix_angles() user function for the basis_set argument.""" + + # Add an alignment tensor. + align_tensor.init('a', (0.0, 0.0, 0.0, 0.0, 0.0)) + + # 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.align_tensor_fns.matrix_angles, basis_set=data[1]) + + def test_svd_argfail_basis_set(self): """The proper failure of the align_tensor.svd() user function for the basis_set argument."""