~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/test_lp_directory.py

  • Committer: Martin Pool
  • Date: 2010-08-13 07:56:06 UTC
  • mfrom: (5050.17.4 2.2)
  • mto: (5050.17.6 2.2)
  • mto: This revision was merged to the branch mainline in revision 5379.
  • Revision ID: mbp@sourcefrog.net-20100813075606-8zgmov3ezwans2zo
merge bzr 2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
from bzrlib import (
23
23
    errors,
24
24
    tests,
 
25
    transport,
25
26
    )
26
27
from bzrlib.branch import Branch
27
28
from bzrlib.directory_service import directories
29
30
    TestCaseInTempDir,
30
31
    TestCaseWithMemoryTransport
31
32
)
32
 
from bzrlib.transport import get_transport
33
33
from bzrlib.plugins.launchpad import (
34
34
    _register_directory,
35
35
    lp_registration,
217
217
        directories.register('lp:', FooService, 'Map lp URLs to local urls')
218
218
        self.addCleanup(_register_directory)
219
219
        self.addCleanup(directories.remove, 'lp:')
220
 
        transport = get_transport('lp:///apt')
221
 
        branch = Branch.open_from_transport(transport)
 
220
        t = transport.get_transport('lp:///apt')
 
221
        branch = Branch.open_from_transport(t)
222
222
        self.assertEqual(target_branch.base, branch.base)
223
223
 
224
224