~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Martin Pool
  • Date: 2006-08-25 05:04:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2090.
  • Revision ID: mbp@sourcefrog.net-20060825050430-26a4a2437986d8b7
Localtransport cleanup review (john)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from cStringIO import StringIO
22
22
 
23
23
import bzrlib
 
24
from bzrlib import urlutils
24
25
from bzrlib.errors import (NoSuchFile, FileExists,
25
26
                           TransportNotPossible,
26
27
                           ConnectionError,
38
39
                              )
39
40
from bzrlib.transport.memory import MemoryTransport
40
41
from bzrlib.transport.local import LocalTransport
41
 
from bzrlib import urlutils
42
42
 
43
43
 
44
44
# TODO: Should possibly split transport-specific tests into their own files.
324
324
        server.setUp()
325
325
        try:
326
326
            # the url should be decorated appropriately
327
 
            self.assertTrue(server.get_url().startswith('fakenfs+'))
 
327
            self.assertStartsWith(server.get_url(), 'fakenfs+')
328
328
            # and we should be able to get a transport for it
329
329
            transport = get_transport(server.get_url())
330
330
            # which must be a FakeNFSTransportDecorator instance.
432
432
        here = os.path.abspath('.')
433
433
        t = get_transport('.')
434
434
        self.assertIsInstance(t, LocalTransport)
435
 
        self.assertEquals(t.base, urlutils.local_path_to_url(here) + '/')
 
435
        self.assertEquals(t.base, urlutils.local_path_to_url('.') + '/')
436
436
 
437
437
    def test_get_transport_from_local_url(self):
438
438
        here = os.path.abspath('.')