[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests - test_http.py:1.33

Jim Fulton jim at zope.com
Wed Apr 7 10:36:49 EDT 2004


Update of /cvs-repository/Zope3/src/zope/publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv20682/src/zope/publisher/tests

Modified Files:
	test_http.py 
Log Message:
Fixed a broken and untested repr.  I thin kit was broken before I
broke it, but, perhaps, not so badly. :)


=== Zope3/src/zope/publisher/tests/test_http.py 1.32 => 1.33 ===
--- Zope3/src/zope/publisher/tests/test_http.py:1.32	Mon Apr  5 04:16:02 2004
+++ Zope3/src/zope/publisher/tests/test_http.py	Wed Apr  7 10:36:48 2004
@@ -99,6 +99,13 @@
         publish(request, handle_errors=0)
         return outstream.getvalue()
 
+
+    def test_repr(self):
+        request = self._createRequest()
+        expect = '<%s.%s instance URL=http://foobar.com>' % (
+            request.__class__.__module__, request.__class__.__name__)
+        self.assertEqual(repr(request), expect)
+
     def testTraversalToItem(self):
         res = self._publisherResults()
         self.failUnlessEqual(




More information about the Zope3-Checkins mailing list