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


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to