~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Martin Pool
  • Date: 2006-08-24 08:20:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2090.
  • Revision ID: mbp@sourcefrog.net-20060824082026-d539b3b122dc2f2a
Change to using LocalURLServer for testing.

We used to run many transport tests three times for different
LocalServers, but in fact they all end up constructing the same transport.
So now we just test construction of local transports from urls and paths,
and run the tests once.

Show diffs side-by-side

added added

removed removed

Lines of Context:
439
439
 
440
440
    def test_get_readonly_url_http(self):
441
441
        from bzrlib.transport import get_transport
442
 
        from bzrlib.transport.local import LocalRelpathServer
 
442
        from bzrlib.transport.local import LocalURLServer
443
443
        from bzrlib.transport.http import HttpServer, HttpTransportBase
444
 
        self.transport_server = LocalRelpathServer
 
444
        self.transport_server = LocalURLServer
445
445
        self.transport_readonly_server = HttpServer
446
446
        # calling get_readonly_transport() gives us a HTTP server instance.
447
447
        url = self.get_readonly_url()