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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:06:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521180619-5qoo0470asgdnljt
Fix more tests (all?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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):
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):
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):