Author: bugman Date: Wed Apr 23 23:05:19 2008 New Revision: 5957 URL: http://svn.gna.org/viewcvs/relax?rev=5957&view=rev Log: The PipeContainer.__repr__() unit test are now stricter, checking for returned strings. 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=5957&r1=5956&r2=5957&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 23:05:19 2008 @@ -43,22 +43,22 @@ del self.data_pipe - def test_PipeContainer_printout(self): - """Print out the contents of a data pipe, (testing the PipeContainer.__repr__() method).""" + def test_PipeContainer_repr(self): + """Test the PipeContainer.__repr__() method.""" # Add a few objects. self.data_pipe.x = 10 self.data_pipe.chi2 = PipeContainer() - # Print out. - print self.data_pipe + # Test that __repr__() returns a string. + self.assert_(type(self.data_pipe.__repr__()), str) - def test_PipeContainer_printout_empty(self): - """Print out the contents of an empty data pipe, (testing the PipeContainer.__repr__() method).""" + def test_PipeContainer_repr_empty_pipe(self): + """Test the PipeContainer.__repr__() method for an empty data pipe.""" - # Print out. - print self.data_pipe + # Test that __repr__() returns a string. + self.assert_(type(self.data_pipe.__repr__()), str) def test_PipeContainer_is_empty(self):