~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4284.1.1.

  • Committer: Vincent Ladeuil
  • Date: 2009-04-11 06:32:41 UTC
  • mto: (4285.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4286.
  • Revision ID: v.ladeuil+lp@free.fr-20090411063241-21hv3yp5kh9d05l4
Fix wrong realm extraction in http basic authentication (reported
by Jelmer).

* bzrlib/transport/http/_urllib2_wrappers.py:
(BasicAuthHandler.extract_realm): Factor out realm extraction for
tests purpose.

* bzrlib/tests/test_http.py:
(TestAuthHeader.parse_header): Accept a specific auth handler.
(TestAuthHeader.test_basic_extract_realm): Explicitly test realm
extraction.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: