mailr3980 - /1.3/test_suite/unit_tests/diffusion_tensor_testing_base.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 - 23:26:
Author: bugman
Date: Sun Nov 25 23:26:42 2007
New Revision: 3980

URL: http://svn.gna.org/viewcvs/relax?rev=3980&view=rev
Log:
Wrote 2 unit tests for the failure of generic_fns.diffusion_tensor.display().

This is when there is no data and when there is no data pipe.


Modified:
    1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py

Modified: 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py?rev=3980&r1=3979&r2=3980&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py (original)
+++ 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py Sun Nov 25 
23:26:42 2007
@@ -110,6 +110,31 @@
 
         # Display the diffusion tensor.
         self.diffusion_tensor_fns.display()
+
+
+    def test_display_fail_no_data(self):
+        """Failure of the display of the diffusion tensor data structure 
when there is no data.
+
+        The functions tested are both generic_fns.diffusion_tensor.display() 
and
+        prompt.diffusion_tensor.display().
+        """
+
+        # Try to display the tensor data.
+        self.assertRaises(RelaxNoTensorError, 
self.diffusion_tensor_fns.display)
+
+
+    def test_display_fail_no_pipe(self):
+        """Failure of the display of the diffusion tensor data structure 
when there is no data pipe.
+
+        The functions tested are both generic_fns.diffusion_tensor.display() 
and
+        prompt.diffusion_tensor.display().
+        """
+
+        # Reset the relax data store.
+        relax_data_store.__reset__()
+
+        # Try to display the tensor data.
+        self.assertRaises(RelaxNoPipeError, 
self.diffusion_tensor_fns.display)
 
 
     def test_display_sphere(self):




Related Messages


Powered by MHonArc, Updated Sun Nov 25 23:40:07 2007