mailr6508 - /1.3/test_suite/system_tests/model_free.py


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

Header


Content

Posted by edward on June 28, 2008 - 17:43:
Author: bugman
Date: Sat Jun 28 17:32:26 2008
New Revision: 6508

URL: http://svn.gna.org/viewcvs/relax?rev=6508&view=rev
Log:
Added the base of a system test for the writing of relax 1.3 model-free 
results files.


Modified:
    1.3/test_suite/system_tests/model_free.py

Modified: 1.3/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/model_free.py?rev=6508&r1=6507&r2=6508&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/model_free.py (original)
+++ 1.3/test_suite/system_tests/model_free.py Sat Jun 28 17:32:26 2008
@@ -30,6 +30,7 @@
 # relax module imports.
 from data import Relax_data_store; ds = Relax_data_store()
 from physical_constants import N15_CSA, NH_BOND_LENGTH
+from relax_io import DummyFileObject
 
 
 # Get the platform information.
@@ -840,6 +841,22 @@
         self.assertEqual(cdp.mol[0].res[1].spin[0].r, NH_BOND_LENGTH)
 
 
+    def test_write_results(self):
+        """Writing of model-free results using the user function 
results.write()."""
+
+        # Path of the files.
+        path = sys.path[-1] + '/test_suite/shared_data/model_free/OMP'
+
+        # Read the results file.
+        self.relax.interpreter._Results.read(file='final_results_trunc_1.2', 
dir=path)
+
+        # A dummy file object for catching the results.write() output.
+        file = DummyFileObject
+
+        # Write the results file into a dummy file.
+        self.relax.interpreter._Results.write(file=file, dir=path)
+
+
     def value_test(self, spin, select, s2, te, rex, chi2, iter, f_count, 
g_count, h_count, warning):
         """Method for testing the optimisation values.
 




Related Messages


Powered by MHonArc, Updated Sat Jun 28 18:00:19 2008