mailr5954 - /1.3/test_suite/unit_tests/_data/test_pipe_container.py


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

Header


Content

Posted by edward on April 23, 2008 - 22:58:
Author: bugman
Date: Wed Apr 23 22:58:27 2008
New Revision: 5954

URL: http://svn.gna.org/viewcvs/relax?rev=5954&view=rev
Log:
Added two simple unit tests for printing out the contents of a data pipe.

This tests the PipeContainer.__repr__() method.


Modified:
    1.3/test_suite/unit_tests/_data/test_pipe_container.py

Modified: 1.3/test_suite/unit_tests/_data/test_pipe_container.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_data/test_pipe_container.py?rev=5954&r1=5953&r2=5954&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_data/test_pipe_container.py (original)
+++ 1.3/test_suite/unit_tests/_data/test_pipe_container.py Wed Apr 23 
22:58:27 2008
@@ -37,6 +37,24 @@
         self.data_pipe = PipeContainer()
 
 
+    def test_PipeContainer_printout(self):
+        """Print out the contents of a data pipe, (testing the 
PipeContainer.__repr__() method)."""
+
+        # Add a few objects.
+        self.data_pipe.x = 10
+        self.data_pipe.chi2 = PipeContainer()
+
+        # Print out.
+        print self.data_pipe
+
+
+    def test_PipeContainer_printout_empty(self):
+        """Print out the contents of an empty data pipe, (testing the 
PipeContainer.__repr__() method)."""
+
+        # Print out.
+        print self.data_pipe
+
+
     def test_PipeContainer_is_empty(self):
         """Tests for the PipeContainer.is_empty() method."""
 




Related Messages


Powered by MHonArc, Updated Wed Apr 23 23:20:13 2008