* 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.