mailr4419 - /1.3/test_suite/unit_tests/_prompt/test_diffusion_tensor.py


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

Header


Content

Posted by edward on January 07, 2008 - 13:51:
Author: bugman
Date: Mon Jan  7 13:43:42 2008
New Revision: 4419

URL: http://svn.gna.org/viewcvs/relax?rev=4419&view=rev
Log:
Bug fix for the params arg unit test of the diffusion_tensor.init() user 
function.

The new str tuples are now properly handled.


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

Modified: 1.3/test_suite/unit_tests/_prompt/test_diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_diffusion_tensor.py?rev=4419&r1=4418&r2=4419&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_diffusion_tensor.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_diffusion_tensor.py Mon Jan  7 
13:43:42 2008
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2007 Edward d'Auvergne                                       
 #
+# Copyright (C) 2007-2008 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -75,7 +75,7 @@
 
 
     def test_init_argfail_params(self):
-        """Proper failure of the diffusion_tensor.init() user function for 
the params argument."""
+        """The params arg test of diffusion_tensor.init() user function."""
 
         # Loop over the data types.
         for data in DATA_TYPES:
@@ -84,7 +84,7 @@
                 continue
 
             # Catch the tuple arguments.
-            if data[0] == 'tuple' or data[0] == 'float tuple':
+            if data[0] == 'tuple' or data[0] == 'float tuple' or data[0] == 
'str tuple':
                 # Incorrect tuple length.
                 if len(data[1]) != 4 and len(data[1]) != 6:
                     self.assertRaises(RelaxError, 
self.diffusion_tensor_fns.init, params=data[1])




Related Messages


Powered by MHonArc, Updated Mon Jan 07 14:00:19 2008