mailr9252 - /1.3/test_suite/system_tests/diffusion_tensor.py


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

Header


Content

Posted by edward on July 21, 2009 - 15:19:
Author: bugman
Date: Tue Jul 21 15:19:03 2009
New Revision: 9252

URL: http://svn.gna.org/viewcvs/relax?rev=9252&view=rev
Log:
Split the system test of structure.create_diff_tensor_pdb() into 3 tests for 
each diff type.


Modified:
    1.3/test_suite/system_tests/diffusion_tensor.py

Modified: 1.3/test_suite/system_tests/diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/diffusion_tensor.py?rev=9252&r1=9251&r2=9252&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/diffusion_tensor.py (original)
+++ 1.3/test_suite/system_tests/diffusion_tensor.py Tue Jul 21 15:19:03 2009
@@ -147,18 +147,34 @@
         self.relax.interpreter._Diffusion_tensor.display()
 
 
-    def test_createDiffTensor(self):
-        """The user function structure.create_diff_tensor_pdb()."""
+    def test_create_diff_tensor_pdb_sphere(self):
+        """Test the user function structure.create_diff_tensor_pdb() for the 
sphere."""
 
         # Create the diffusion tensor objects.
         self.relax.interpreter._Pipe.switch('sphere')
         
self.relax.interpreter._Structure.create_diff_tensor_pdb(file=self.tmpfile_sphere)
+
+        # Open the temp files.
+        file_sphere = open(self.tmpfile_sphere)
+
+
+    def test_create_diff_tensor_pdb_spheroid(self):
+        """Test the user function structure.create_diff_tensor_pdb() for the 
spheroid."""
+
+        # Create the diffusion tensor objects.
         self.relax.interpreter._Pipe.switch('spheroid')
         
self.relax.interpreter._Structure.create_diff_tensor_pdb(file=self.tmpfile_spheroid)
+
+        # Open the temp files.
+        file_spheroid = open(self.tmpfile_spheroid)
+
+
+    def test_create_diff_tensor_pdb_ellipsoid(self):
+        """Test the user function structure.create_diff_tensor_pdb() for the 
ellipsoid."""
+
+        # Create the diffusion tensor objects.
         self.relax.interpreter._Pipe.switch('ellipsoid')
         
self.relax.interpreter._Structure.create_diff_tensor_pdb(file=self.tmpfile_ellipsoid)
 
         # Open the temp files.
-        file_sphere = open(self.tmpfile_sphere)
-        file_spheroid = open(self.tmpfile_spheroid)
         file_ellipsoid = open(self.tmpfile_ellipsoid)




Related Messages


Powered by MHonArc, Updated Tue Jul 21 16:00:06 2009