/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/tests/test_errors.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import socket
22
22
import sys
23
23
 
24
 
from bzrlib import (
 
24
from breezy import (
25
25
    controldir,
26
26
    errors,
27
27
    osutils,
28
28
    urlutils,
29
29
    )
30
 
from bzrlib.tests import (
 
30
from breezy.tests import (
31
31
    TestCase,
32
32
    TestCaseWithTransport,
33
33
    TestSkipped,
166
166
        error = errors.LockCorrupt("corruption info")
167
167
        self.assertEqualDiff("Lock is apparently held, but corrupted: "
168
168
            "corruption info\n"
169
 
            "Use 'bzr break-lock' to clear it",
 
169
            "Use 'brz break-lock' to clear it",
170
170
            str(error))
171
171
 
172
172
    def test_knit_data_stream_incompatible(self):
221
221
    def test_no_help_topic(self):
222
222
        error = errors.NoHelpTopic("topic")
223
223
        self.assertEqualDiff("No help could be found for 'topic'. "
224
 
            "Please use 'bzr help topics' to obtain a list of topics.",
 
224
            "Please use 'brz help topics' to obtain a list of topics.",
225
225
            str(error))
226
226
 
227
227
    def test_no_such_id(self):
269
269
    def test_unknown_hook(self):
270
270
        error = errors.UnknownHook("branch", "foo")
271
271
        self.assertEqualDiff("The branch hook 'foo' is unknown in this version"
272
 
            " of bzrlib.",
 
272
            " of breezy.",
273
273
            str(error))
274
274
        error = errors.UnknownHook("tree", "bar")
275
275
        self.assertEqualDiff("The tree hook 'bar' is unknown in this version"
276
 
            " of bzrlib.",
 
276
            " of breezy.",
277
277
            str(error))
278
278
 
279
279
    def test_unstackable_branch_format(self):
309
309
        repo = self.make_repository('.')
310
310
        error = errors.CorruptRepository(repo)
311
311
        self.assertEqualDiff("An error has been detected in the repository %s.\n"
312
 
                             "Please run bzr reconcile on this repository." %
 
312
                             "Please run brz reconcile on this repository." %
313
313
                             repo.bzrdir.root_transport.base,
314
314
                             str(error))
315
315
 
442
442
        error = errors.MalformedBugIdentifier('bogus', 'reason for bogosity')
443
443
        self.assertEqual(
444
444
            'Did not understand bug identifier bogus: reason for bogosity. '
445
 
            'See "bzr help bugs" for more information on this feature.',
 
445
            'See "brz help bugs" for more information on this feature.',
446
446
            str(error))
447
447
 
448
448
    def test_unknown_bug_tracker_abbreviation(self):
614
614
        err = errors.ViewsNotSupported('atree')
615
615
        err_str = str(err)
616
616
        self.assertStartsWith(err_str, "Views are not supported by ")
617
 
        self.assertEndsWith(err_str, "; use 'bzr upgrade' to change your "
 
617
        self.assertEndsWith(err_str, "; use 'brz upgrade' to change your "
618
618
            "tree to a later format.")
619
619
 
620
620
    def test_file_outside_view(self):
692
692
    def test_recursive_bind(self):
693
693
        error = errors.RecursiveBind('foo_bar_branch')
694
694
        msg = ('Branch "foo_bar_branch" appears to be bound to itself. '
695
 
            'Please use `bzr unbind` to fix.')
 
695
            'Please use `brz unbind` to fix.')
696
696
        self.assertEqualDiff(msg, str(error))
697
697
 
698
698
    def test_retry_with_new_packs(self):