Author: bugman Date: Wed Nov 28 18:15:13 2007 New Revision: 4117 URL: http://svn.gna.org/viewcvs/relax?rev=4117&view=rev Log: Implemented the label arg unit test for the align_tensor.init() user function. This is a new argument. 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=4117&r1=4116&r2=4117&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 28 18:15:13 2007 @@ -73,6 +73,19 @@ self.assertRaises(RelaxError, self.align_tensor_fns.copy) + def test_init_argfail_label(self): + """Failure of the label arg of the align_tensor.init() user function.""" + + # Loop over the data types. + for data in DATA_TYPES: + # Catch the str argument, and skip it. + if data[0] == 'str': + continue + + # The argument test. + self.assertRaises(RelaxStrError, self.align_tensor_fns.init, label=data[1]) + + def test_init_argfail_params(self): """Failure of the params arg of the align_tensor.init() user function."""