~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2363.4.5.

  • Committer: Vincent Ladeuil
  • Date: 2007-04-12 13:09:53 UTC
  • mto: (2420.1.1 bzr.http.auth)
  • mto: This revision was merged to the branch mainline in revision 2463.
  • Revision ID: v.ladeuil+lp@free.fr-20070412130953-pwgok8w72gxazlel
Add white box tests for basic HTTP auth.

* bzrlib/transport/http/_urllib2_wrappers.py:
(HTTPBasicAuthHandler.get_auth, HTTPBasicAuthHandler.set_auth):
New methods.

* bzrlib/tests/test_http.py:
(TestHttpProxyWhiteBox._proxied_request): Get rid of local imports.
(TestHTTPBasicAuth): New class. Tests basic HTTP auth.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: