Author: bugman Date: Fri Dec 21 10:02:43 2007 New Revision: 4228 URL: http://svn.gna.org/viewcvs/relax?rev=4228&view=rev Log: Implemented the basis_set arg unit test for the align_tensor.svd() 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=4228&r1=4227&r2=4228&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 10:02:43 2007 @@ -210,4 +210,17 @@ 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_svd_argfail_basis_set(self): + """The proper failure of the align_tensor.svd() user function for the basis_set argument.""" + + # 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.svd, basis_set=data[1]) + + +