[Checkins] [zopefoundation/zope.testbrowser] 2a1272: Preserve request headers across redirects

GitHub noreply at github.com
Wed Mar 27 17:29:19 UTC 2013


  Branch: refs/heads/py3
  Home:   https://github.com/zopefoundation/zope.testbrowser
  Commit: 2a1272a55d114569d7d7787235450173a5bb1908
      https://github.com/zopefoundation/zope.testbrowser/commit/2a1272a55d114569d7d7787235450173a5bb1908
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-03-27 (Wed, 27 Mar 2013)

  Changed paths:
    M src/zope/testbrowser/browser.py
    M src/zope/testbrowser/tests/test_wsgi.py

  Log Message:
  -----------
  Preserve request headers across redirects

It is customary in many real-world test suites to do something like

   browser.addHeader('Authorization', 'mgr:mgrpw')

and then expect that to take effect for all subsequent requests, even
those that result from a previous request returning a 30x redirect.





More information about the checkins mailing list