[Checkins] [zopefoundation/zope.testbrowser] 56a8ce: Preserve request headers across multiple requests

GitHub noreply at github.com
Wed Mar 27 16:19:51 UTC 2013


  Branch: refs/heads/py3
  Home:   https://github.com/zopefoundation/zope.testbrowser
  Commit: 56a8ce2f37420ac475623f2a0ae11615c6ca16d0
      https://github.com/zopefoundation/zope.testbrowser/commit/56a8ce2f37420ac475623f2a0ae11615c6ca16d0
  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 multiple requests

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 browser.open(...),
browser.getLink(...).click(), browser.getControl(...).submit() calls.





More information about the checkins mailing list