mailr3913 - /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 November 25, 2007 - 16:57:
Author: bugman
Date: Sun Nov 25 16:57:12 2007
New Revision: 3913

URL: http://svn.gna.org/viewcvs/relax?rev=3913&view=rev
Log:
Implemented all the arg unit tests for the diffusion_tensor.copy() user 
function.


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=3913&r1=3912&r2=3913&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 Sun Nov 25 
16:57:12 2007
@@ -39,6 +39,32 @@
 
     # Instantiate the user function class.
     diffusion_tensor_fns = Diffusion_tensor(fake_relax.fake_instance())
+
+
+    def test_copy_argfail_pipe_from(self):
+        """Proper failure of the diffusion_tensor.copy() user function for 
the pipe_from argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the None and str arguments, and skip them.
+            if data[0] == 'None' or data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxNoneStrError, 
self.diffusion_tensor_fns.copy, pipe_from=data[1])
+
+
+    def test_copy_argfail_pipe_to(self):
+        """Proper failure of the diffusion_tensor.copy() user function for 
the pipe_to argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the None and str arguments, and skip them.
+            if data[0] == 'None' or data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxNoneStrError, 
self.diffusion_tensor_fns.copy, pipe_to=data[1])
 
 
     def test_init_argfail_params(self):




Related Messages


Powered by MHonArc, Updated Sun Nov 25 17:00:16 2007