~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-24 14:57:25 UTC
  • mto: (3928.1.1 bzr.integration)
  • mto: This revision was merged to the branch mainline in revision 3929.
  • Revision ID: v.ladeuil+lp@free.fr-20071124145725-vy1kdhey2jusaj04
Implement an https server passing the same tests than http. Except
for test_readv_with_adjust_for_latency of course (hi robert
;-). There is a nasty bug there already triggered in the #158972
days, but nastier this time.

* bzrlib/transport/http/_urllib2_wrappers.py:
(HTTPSConnection.connect_to_origin): Takes python2.6 ssl
implementation into account if available.

* bzrlib/tests/https_server.py:
(TestingHTTPSServer): Real implementation for https.
(HTTPSServer): Real implementation with test ssl files.

* bzrlib/tests/http_server.py:
(HttpServer.create_httpd): New method allowing daughter classes to
create specific servers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by