Can we put the one line testbrowser patch in, please?  Without it,
testbrowser never gets to see Cookie headers, which I consider quite a
PIA.  Currently, I'm including the patched version of Five's testbrowser
module in a test for the PasswordResetTool Product here:
http://dev.plone.org/collective/browser/PasswordResetTool/trunk/tests/utils/testbrowser.py

The patch:

Index: testbrowser.py
===================================================================
--- testbrowser.py      (revision 66810)
+++ testbrowser.py      (working copy)
@@ -35,6 +35,7 @@
         headers.sort()
         headers.insert(0, ('Status', "%s %s" % (status, reason)))
         headers = '\r\n'.join('%s: %s' % h for h in headers)
+        headers += '\r\n' + '\r\n'.join(real_response._cookie_list())
         content = real_response.body
         return testing.PublisherResponse(content, headers, status, reason)





Daniel

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to