mailr3158 - /1.3/test_suite/unit_tests/generic_fns/test_pipes.py


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

Header


Content

Posted by edward on March 13, 2007 - 04:38:
Author: bugman
Date: Tue Mar 13 04:37:42 2007
New Revision: 3158

URL: http://svn.gna.org/viewcvs/relax?rev=3158&view=rev
Log:
Added a tearDown() method to the 
'test_suite/unit_tests/generic_fns/test_pipes.py' file.

The relax data storage object is reset as the data added to it from different 
tests was clashing.
The method allows the 'test_creation_fail' unit test to pass.

Modified:
    1.3/test_suite/unit_tests/generic_fns/test_pipes.py

Modified: 1.3/test_suite/unit_tests/generic_fns/test_pipes.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/generic_fns/test_pipes.py?rev=3158&r1=3157&r2=3158&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/generic_fns/test_pipes.py (original)
+++ 1.3/test_suite/unit_tests/generic_fns/test_pipes.py Tue Mar 13 04:37:42 
2007
@@ -55,6 +55,12 @@
         # Add an empty data pipe (for the 'eliminate_unused_pipes' test).
         relax_data_store['empty'] = PipeContainer()
         relax_data_store['empty'].pipe_type = 'mf'
+
+
+    def tearDown(self):
+        """Reset the relax data storage object."""
+
+        relax_data_store.__reset__()
 
 
     def test_creation(self):




Related Messages


Powered by MHonArc, Updated Tue Mar 13 04:40:05 2007