~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-23 07:50:15 UTC
  • mfrom: (2376.4.43 bug-support)
  • Revision ID: pqm@pqm.ubuntu.com-20070423075015-340ajk1vo3pzxheu
(robertc) bzr --fixes support to allow recording of bugs that are fixed by commits. (Jonathan Lange, James Henstridge, Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
            host='ahost', port=444, msg='Unable to connect to ssh host',
245
245
            orig_error='my_error')
246
246
 
 
247
    def test_malformed_bug_identifier(self):
 
248
        """Test the formatting of MalformedBugIdentifier."""
 
249
        error = errors.MalformedBugIdentifier('bogus', 'reason for bogosity')
 
250
        self.assertEqual(
 
251
            "Did not understand bug identifier bogus: reason for bogosity",
 
252
            str(error))
 
253
 
 
254
    def test_unknown_bug_tracker_abbreviation(self):
 
255
        """Test the formatting of UnknownBugTrackerAbbreviation."""
 
256
        branch = self.make_branch('some_branch')
 
257
        error = errors.UnknownBugTrackerAbbreviation('xxx', branch)
 
258
        self.assertEqual(
 
259
            "Cannot find registered bug tracker called xxx on %s" % branch,
 
260
            str(error))
 
261
 
247
262
    def test_unexpected_smart_server_response(self):
248
263
        e = errors.UnexpectedSmartServerResponse(('not yes',))
249
264
        self.assertEqual(