mailr5560 - /1.3/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 April 10, 2008 - 17:20:
Author: bugman
Date: Thu Apr 10 17:03:24 2008
New Revision: 5560

URL: http://svn.gna.org/viewcvs/relax?rev=5560&view=rev
Log:
Fix for the errors arg test of the align_tensor.init() user function.


Modified:
    1.3/test_suite/unit_tests/_prompt/test_align_tensor.py

Modified: 1.3/test_suite/unit_tests/_prompt/test_align_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_align_tensor.py?rev=5560&r1=5559&r2=5560&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_align_tensor.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_align_tensor.py Thu Apr 10 
17:03:24 2008
@@ -26,7 +26,7 @@
 # relax module imports.
 from generic_fns import align_tensor
 from prompt.align_tensor import Align_tensor
-from relax_errors import RelaxError, RelaxBinError, RelaxFloatError, 
RelaxIntError, RelaxNoneListstrError, RelaxNoneStrError, RelaxNumTupleError, 
RelaxStrError
+from relax_errors import RelaxError, RelaxBoolError, RelaxFloatError, 
RelaxIntError, RelaxNoneListstrError, RelaxNoneStrError, RelaxNumTupleError, 
RelaxStrError
 from test_suite.unit_tests.align_tensor_testing_base import 
Align_tensor_base_class
 
 # Unit test imports.
@@ -199,16 +199,16 @@
 
 
     def test_init_argfail_errors(self):
-        """The proper failure of the align_tensor.init() user function for 
the errors argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the bin arguments, and skip them.
-            if data[0] == 'bin':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxBinError, self.align_tensor_fns.init, 
tensor='Pf1', params=(0.0, 0.0, 0.0, 0.0, 0.0), errors=data[1])
+        """The errors arg test of the align_tensor.init() user function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the bool arguments, and skip them.
+            if data[0] == 'bool':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxBoolError, 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):




Related Messages


Powered by MHonArc, Updated Thu Apr 10 17:40:12 2008