mailr4338 - /1.3/test_suite/system_tests/pipe_create.py


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

Header


Content

Posted by edward on January 05, 2008 - 17:09:
Author: bugman
Date: Sat Jan  5 17:09:45 2008
New Revision: 4338

URL: http://svn.gna.org/viewcvs/relax?rev=4338&view=rev
Log:
Converted the pipe creation functional test to use the unittest framework.


Modified:
    1.3/test_suite/system_tests/pipe_create.py

Modified: 1.3/test_suite/system_tests/pipe_create.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/pipe_create.py?rev=4338&r1=4337&r2=4338&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/pipe_create.py (original)
+++ 1.3/test_suite/system_tests/pipe_create.py Sat Jan  5 17:09:45 2008
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2006-2007 Edward d'Auvergne                                  
 #
+# Copyright (C) 2006-2008 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -20,22 +20,25 @@
 #                                                                            
 #
 
###############################################################################
 
+# Python module imports.
+from unittest import TestCase
 
-class Pipe_create:
+
+class Test_pipe_create(TestCase):
+    """TestCase class for the functional tests of relax data pipes."""
+
     def __init__(self, relax):
-        """Class for testing the creation of data pipes."""
-
         self.relax = relax
 
-        # The name of the test.
-        self.name = "The user function pipe.create()"
+
+    def tearDown(self):
+        """Reset the relax data storage object."""
+
+        relax_data_store.__reset__()
 
 
-    def test(self, pipe):
-        """The actual test."""
+    def test_pipe_create(self):
+        """Create a data pipe."""
 
         # Create the data pipe.
         self.relax.interpreter._Pipe.create(pipe, 'mf')
-
-        # Success.
-        return 1




Related Messages


Powered by MHonArc, Updated Sat Jan 05 17:20:21 2008