Author: bugman Date: Wed Mar 4 15:10:39 2015 New Revision: 27776 URL: http://svn.gna.org/viewcvs/relax?rev=27776&view=rev Log: Fixes for the align_tensor.copy user function argument unit tests. The tensor_from and tensor_to arguments can now be None. Modified: trunk/test_suite/unit_tests/_prompt/test_align_tensor.py Modified: trunk/test_suite/unit_tests/_prompt/test_align_tensor.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_prompt/test_align_tensor.py?rev=27776&r1=27775&r2=27776&view=diff ============================================================================== --- trunk/test_suite/unit_tests/_prompt/test_align_tensor.py (original) +++ trunk/test_suite/unit_tests/_prompt/test_align_tensor.py Wed Mar 4 15:10:39 2015 @@ -53,11 +53,11 @@ # 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.copy, tensor_from=data[1]) + if data[0] == 'None' or data[0] == 'str': + continue + + # The argument test. + self.assertRaises(RelaxNoneStrError, self.align_tensor_fns.copy, tensor_from=data[1]) def test_copy_argfail_pipe_from(self): @@ -79,11 +79,11 @@ # 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.copy, tensor_to=data[1]) + if data[0] == 'None' or data[0] == 'str': + continue + + # The argument test. + self.assertRaises(RelaxNoneStrError, self.align_tensor_fns.copy, tensor_to=data[1]) def test_copy_argfail_pipe_to(self):