/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 bzrlib/plugins/launchpad/test_lp_open.py

  • Committer: Neil Martinsen-Burrell
  • Date: 2009-12-07 15:47:05 UTC
  • mto: (4875.1.1 integration2)
  • mto: This revision was merged to the branch mainline in revision 4872.
  • Revision ID: nmb@wartburg.edu-20091207154705-nfi1q7d92hwzpf7u
launchpad-open works from a subdirectory of a branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Tests for the launchpad-open command."""
18
18
 
19
19
from bzrlib.tests import TestCaseWithTransport
 
20
import os
20
21
 
21
22
 
22
23
class TestLaunchpadOpen(TestCaseWithTransport):
87
88
            ['Opening https://code.edge.launchpad.net/~foo/bar/baz in web '
88
89
             'browser'],
89
90
            self.run_open('bzr+ssh://bazaar.launchpad.net/~foo/bar/baz'))
 
91
 
 
92
    def test_launchpad_branch_subdirectory(self):
 
93
        # lp-open in a subdirectory of a registered branch should work
 
94
        wt = self.make_branch_and_tree('lp')
 
95
        wt.branch.set_push_location(
 
96
            'bzr+ssh://bazaar.launchpad.net/~foo/bar/baz')
 
97
        self.build_tree(['lp/a/'])
 
98
        os.chdir('lp/a')
 
99
        self.assertEqual(
 
100
            ['Opening https://code.edge.launchpad.net/~foo/bar/baz in web '
 
101
             'browser'],
 
102
            self.run_open('.'))