/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2019-05-29 03:28:14 UTC
  • mfrom: (7303 work)
  • mto: This revision was merged to the branch mainline in revision 7305.
  • Revision ID: jelmer@jelmer.uk-20190529032814-fzqbrgf9647u9ptq
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
        self.assertResolve('bzr+ssh://bazaar.launchpad.net/+branch/apt',
106
106
                           'lp:apt')
107
107
 
 
108
    def test_short_form_bzr(self):
 
109
        self.assertResolve('bzr+ssh://bazaar.launchpad.net/+branch/apt',
 
110
                           'lp+bzr:apt')
 
111
 
108
112
    def test_two_part_form(self):
109
113
        self.assertResolve('bzr+ssh://bazaar.launchpad.net/+branch/apt/2.2',
110
114
                           'lp:apt/2.2')
393
397
        class FooService(object):
394
398
            """A directory service that maps the name to a FILE url"""
395
399
 
396
 
            def look_up(self, name, url):
 
400
            def look_up(self, name, url, purpose=None):
397
401
                if 'lp:///apt' == url:
398
402
                    return target_branch.base.rstrip('/')
399
403
                return '!unexpected look_up value!'
400
404
 
401
405
        directories.remove('lp:')
 
406
        directories.remove('lp+bzr:')
402
407
        directories.remove('ubuntu:')
403
408
        directories.remove('debianlp:')
404
409
        directories.register('lp:', FooService, 'Map lp URLs to local urls')