[Zope3-checkins] SVN: Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/ Fixed the Unit tests

Torsten Kurbad t.kurbad at iwm-kmrc.de
Thu Oct 6 12:22:52 EDT 2005


Log message for revision 38797:
  Fixed the Unit tests

Changed:
  U   Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/log.txt
  U   Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/tests/test_publisher.py

-=-
Modified: Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/log.txt
===================================================================
--- Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/log.txt	2005-10-06 16:20:17 UTC (rev 38796)
+++ Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/log.txt	2005-10-06 16:22:52 UTC (rev 38797)
@@ -75,7 +75,7 @@
 
   >>> twisted.python.log.msg(**eventDict)
   >>> print logfile.getvalue() #doctest: +ELLIPSIS
-  127.0.0.1 - - [28/Jun/2005:...] "GET /index.html HTTP/1.1" 200 300 "-" "-"
+  127.0.0.1 - - [29/Jun/2005:...] "GET /index.html HTTP/1.1" 200 300 "-" "-"
   <BLANKLINE>
 
 If I now set the `referer` and `user-agent` headers, we get some more output:
@@ -88,7 +88,7 @@
 
   >>> twisted.python.log.msg(**eventDict)
   >>> print logfile.getvalue() #doctest: +ELLIPSIS
-  127.0.0.1 - - [28/Jun/2005:...] "GET /index.html HTTP/1.1" 200 300
+  127.0.0.1 - - [29/Jun/2005:...] "GET /index.html HTTP/1.1" 200 300
   "http://localhost:8080/manage" "Mozilla 1.7"
   <BLANKLINE>
 

Modified: Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/tests/test_publisher.py
===================================================================
--- Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/tests/test_publisher.py	2005-10-06 16:20:17 UTC (rev 38796)
+++ Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/tests/test_publisher.py	2005-10-06 16:22:52 UTC (rev 38797)
@@ -60,7 +60,7 @@
 
 class Request(object):
 
-    def __init__(self, input, output, env):
+    def __init__(self, input, env):
         self.env = env
         self.response = Response()
         self.user = env['credentials']
@@ -96,8 +96,8 @@
     def __init__(self, root):
         self.pub = Publication(root)
 
-    def __call__(self, input, output, env):
-        r = Request(input, output, env)
+    def __call__(self, input, env):
+        r = Request(input, env)
         r.publication = self.pub
         return r
 



More information about the Zope3-Checkins mailing list