/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_open.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-01-24 01:55:52 UTC
  • mfrom: (7240.5.8 lp-refactoring)
  • Revision ID: breezy.the.bot@gmail.com-20190124015552-2cofvorutfgmzlp6
Some refactoring of the Launchpad module, ahead of removing xmlrpc support.

Merged from https://code.launchpad.net/~jelmer/brz/lp-refactoring/+merge/361934

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
    def test_launchpad_branch_with_public_and_push_location(self):
62
62
        branch = self.make_branch('lp')
63
 
        branch.lock_write()
64
 
        try:
 
63
        with branch.lock_write():
65
64
            branch.set_public_branch(
66
65
                'bzr+ssh://bazaar.launchpad.net/~foo/bar/public')
67
66
            branch.set_push_location(
68
67
                'bzr+ssh://bazaar.launchpad.net/~foo/bar/push')
69
 
        finally:
70
 
            branch.unlock()
71
68
        self.assertEqual(
72
69
            ['Opening https://code.launchpad.net/~foo/bar/public in web '
73
70
             'browser'],