~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_commit.py

  • Committer: James Westby
  • Date: 2009-03-10 08:35:35 UTC
  • mto: (4108.1.1 jamesw-integration)
  • mto: This revision was merged to the branch mainline in revision 4109.
  • Revision ID: james.westby@canonical.com-20090310083535-7uqrw5k93ntpdc09
Make the improved messages show up in the UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
488
488
        self.build_tree(['tree/hello.txt'])
489
489
        tree.add('hello.txt')
490
490
        self.run_bzr_error(
491
 
            ["Invalid bug identifier for %s. Commit refused." % 'lp:orange'],
 
491
            ["Did not understand bug identifier orange: Must be an integer. "
 
492
             "See \"bzr help bugs\" for more information on this feature.\n"
 
493
             "Commit refused."],
492
494
            'commit -m add-b --fixes=lp:orange',
493
495
            working_dir='tree')
494
496
 
499
501
        tree.add('hello.txt')
500
502
        self.run_bzr_error(
501
503
            [r"Invalid bug orange. Must be in the form of 'tracker:id'\. "
 
504
             r"See \"bzr help bugs\" for more information on this feature.\n"
502
505
             r"Commit refused\."],
503
506
            'commit -m add-b --fixes=orange',
504
507
            working_dir='tree')