~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Vincent Ladeuil
  • Date: 2007-12-11 14:26:18 UTC
  • mto: (3111.1.1 175524)
  • mto: This revision was merged to the branch mainline in revision 3158.
  • Revision ID: v.ladeuil+lp@free.fr-20071211142618-pt6ca80047kok237
Rename bzrlib/test/HTTPTestUtils.py to bzrlib/tests/http_utils.py and fix
uses.  Rename bzrlib/test/HttpServer.py to bzrlib/tests/http_server.py
and fix uses.  Don't pretend we support HTTP/0.9 since we don't and do
that correctly.

* bzrlib/transport/http/_urllib2_wrappers.py:
(AbstractHTTPConnection): Specifying strict here is useless.
(HTTPConnection, HTTPSConnection): We don't support HTTP/0.9 in
other parts of the stack, be explicit *correctly*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
433
433
        self.assertEqual(True, transport.is_readonly())
434
434
 
435
435
    def test_http_parameters(self):
436
 
        from bzrlib.tests.HttpServer import HttpServer
 
436
        from bzrlib.tests.http_server import HttpServer
437
437
        import bzrlib.transport.readonly as readonly
438
 
        # connect to . via http which is not listable
 
438
        # connect to '.' via http which is not listable
439
439
        server = HttpServer()
440
440
        server.setUp()
441
441
        try:
466
466
    def test_http_parameters(self):
467
467
        # the listable and is_readonly parameters
468
468
        # are not changed by the fakenfs decorator
469
 
        from bzrlib.tests.HttpServer import HttpServer
470
 
        # connect to . via http which is not listable
 
469
        from bzrlib.tests.http_server import HttpServer
 
470
        # connect to '.' via http which is not listable
471
471
        server = HttpServer()
472
472
        server.setUp()
473
473
        try: