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):


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to