/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: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

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'],