mailr6505 - in /1.3: relax_io.py 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:21:
Author: bugman
Date: Sat Jun 28 17:21:17 2008
New Revision: 6505

URL: http://svn.gna.org/viewcvs/relax?rev=6505&view=rev
Log:
Shifted the dummy file object into the relax_io module.


Modified:
    1.3/relax_io.py
    1.3/test_suite/system_tests/model_free.py

Modified: 1.3/relax_io.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax_io.py?rev=6505&r1=6504&r2=6505&view=diff
==============================================================================
--- 1.3/relax_io.py (original)
+++ 1.3/relax_io.py Sat Jun 28 17:21:17 2008
@@ -437,6 +437,21 @@
 
 
 
+class File_mimick:
+    def __init__(self):
+        """Initialise an object for adding the string from all write calls 
to."""
+
+        self.data = ''
+
+
+    def write(self, str):
+        """Mimic the file object write() method so that this class can be 
used as a file object."""
+
+        # Append the string to the data object.
+        self.data = self.data + str
+
+
+
 class IO:
     def __init__(self, relax):
         """Class containing the file operations.

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=6505&r1=6504&r2=6505&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:21:17 2008
@@ -859,17 +859,3 @@
         self.assertEqual(spin.g_count, g_count, msg=mesg)
         self.assertEqual(spin.h_count, h_count, msg=mesg)
         self.assertEqual(spin.warning, warning, msg=mesg)
-
-
-class File_mimick:
-    def __init__(self):
-        """Initialise an object for adding the string from all write calls 
to."""
-
-        self.data = ''
-
-
-    def write(self, str):
-        """Mimic the file object write() method so that this class can be 
used as a file object."""
-
-        # Append the string to the data object.
-        self.data = self.data + str




Related Messages


Powered by MHonArc, Updated Sat Jun 28 17:40:19 2008