/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for the launchpad-open command."""
18
18
 
19
 
from bzrlib.tests import TestCaseWithTransport
 
19
from ...tests import TestCaseWithTransport
20
20
 
21
21
 
22
22
class TestLaunchpadOpen(TestCaseWithTransport):
32
32
        # to guess the Launchpad page for the given URL / path. If it cannot
33
33
        # find one, it will raise an error.
34
34
        self.assertEqual(
35
 
            ['bzr: ERROR: . is not registered on Launchpad.'],
 
35
            ['brz: ERROR: . is not registered on Launchpad.'],
36
36
            self.run_open('.', retcode=3))
37
37
 
38
38
    def test_no_public_location_no_push_location(self):
39
39
        self.make_branch('not-public')
40
40
        self.assertEqual(
41
 
            ['bzr: ERROR: not-public is not registered on Launchpad.'],
 
41
            ['brz: ERROR: not-public is not registered on Launchpad.'],
42
42
            self.run_open('not-public', retcode=3))
43
43
 
44
44
    def test_non_launchpad_branch(self):
46
46
        url = 'http://example.com/non-lp'
47
47
        branch.set_public_branch(url)
48
48
        self.assertEqual(
49
 
            ['bzr: ERROR: %s is not registered on Launchpad.' % url],
 
49
            ['brz: ERROR: %s is not registered on Launchpad.' % url],
50
50
            self.run_open('non-lp', retcode=3))
51
51
 
52
52
    def test_launchpad_branch_with_public_location(self):