mailr3764 - /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 November 21, 2007 - 14:41:
Author: bugman
Date: Wed Nov 21 14:41:09 2007
New Revision: 3764

URL: http://svn.gna.org/viewcvs/relax?rev=3764&view=rev
Log:
Implemented the params arg unit test for the align_tensor.init() 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=3764&r1=3763&r2=3764&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 21 14:41:09 2007
@@ -47,4 +47,19 @@
 
     # Instantiate the user function class.
     align_tensor_fns = Align_tensor(relax)
+
+
+    def test_init_argfail_params(self):
+        """Test the proper failure of the align_tensor.init() user function 
for the params argument."""
+
+        # Loop over the data types.
+        for data in return_data_types():
+            # Catch the float list arguments, and skip them.
+            if data[0] == 'float list':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxListFloatError, 
self.align_tensor_fns.copy, params=data[1])
+
+
  




Related Messages


Powered by MHonArc, Updated Wed Nov 21 15:00:19 2007