~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: 2008-10-27 08:02:47 UTC
  • mfrom: (3795 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3798.
  • Revision ID: mbp@sourcefrog.net-20081027080247-0al6nrx2v8u1dcci
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    )
24
24
from bzrlib.branch import Branch
25
25
from bzrlib.directory_service import directories
26
 
from bzrlib.tests import TestCase, TestCaseWithMemoryTransport
 
26
from bzrlib.tests import (
 
27
    TestCase,
 
28
    TestCaseInTempDir,
 
29
    TestCaseWithMemoryTransport
 
30
)
27
31
from bzrlib.transport import get_transport
28
32
from bzrlib.plugins.launchpad import _register_directory
29
33
from bzrlib.plugins.launchpad.lp_directory import (
46
50
        return self._result
47
51
 
48
52
 
49
 
class DirectoryUrlTests(TestCase):
 
53
class DirectoryUrlTests(TestCaseInTempDir):
50
54
    """Tests for branch urls through Launchpad.net directory"""
51
55
 
52
56
    def test_short_form(self):
146
150
                    'http://bazaar.launchpad.net/~apt/apt/devel']))
147
151
        directory = LaunchpadDirectory()
148
152
        self.assertEquals(
149
 
            'bzr+ssh://username@bazaar.launchpad.net/~apt/apt/devel',
 
153
            'bzr+ssh://bazaar.launchpad.net/~apt/apt/devel',
150
154
            directory._resolve('lp:///apt', factory, _lp_login='username'))
151
155
 
152
156
    def test_no_rewrite_of_other_bzr_ssh(self):