mailr4733 - /branches/N_state_model/test_suite/unit_tests/_prompt/test_align_tensor.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 15, 2008 - 13:12:
Author: bugman
Date: Tue Jan 15 13:12:35 2008
New Revision: 4733

URL: http://svn.gna.org/viewcvs/relax?rev=4733&view=rev
Log:
Reverted r4732 as the errors argument is not necessary and already exists as 
a flag.

The command used was:
svn merge -r4732:4731 .


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=4733&r1=4732&r2=4733&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 
Tue Jan 15 13:12:35 2008
@@ -159,26 +159,6 @@
                 self.assertRaises(RelaxNumTupleError, 
self.align_tensor_fns.init, tensor='Pf1', params=data[1])
 
 
-    def test_init_argfail_errors(self):
-        """Failure of the errors arg of the align_tensor.init() user 
function."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the tuple arguments.
-            if data[0] == 'tuple' or data[0] == 'float tuple' or data[0] == 
'str tuple':
-                # Incorrect tuple length.
-                if len(data[1]) != 5:
-                    self.assertRaises(RelaxError, 
self.align_tensor_fns.init, tensor='Pf1', errors=data[1])
-
-                # Must be a number.
-                elif data[0] != 'float tuple':
-                    self.assertRaises(RelaxNumTupleError, 
self.align_tensor_fns.init, errors=data[1])
-
-            # The argument test.
-            else:
-                self.assertRaises(RelaxNumTupleError, 
self.align_tensor_fns.init, tensor='Pf1', errors=data[1])
-
-
     def test_init_argfail_scale(self):
         """The scale arg test of the align_tensor.init() user function."""
 




Related Messages


Powered by MHonArc, Updated Tue Jan 15 13:20:12 2008