~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_directory_service.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-30 10:12:41 UTC
  • mfrom: (5273.1.11 cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20100630101241-gj9gnm31gj0ptaj7
(vila) Cleanup tests importing get_transport. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib import (
20
20
    errors,
 
21
    transport,
21
22
    urlutils,
22
23
    )
23
24
from bzrlib.directory_service import DirectoryServiceRegistry, directories
24
25
from bzrlib.tests import TestCase, TestCaseWithTransport
25
 
from bzrlib.transport import get_transport
26
26
 
27
27
 
28
28
class FooService(object):
56
56
        directories.register('foo:', FooService, 'Map foo URLs to http urls')
57
57
        self.addCleanup(directories.remove, 'foo:')
58
58
        self.assertEqual(FooService.base + 'bar/',
59
 
                         get_transport('foo:bar').base)
 
59
                         transport.get_transport('foo:bar').base)
60
60
 
61
61
 
62
62
class TestAliasDirectory(TestCaseWithTransport):