~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Jonathan Lange
  • Date: 2007-04-22 23:00:56 UTC
  • mfrom: (2440 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2446.
  • Revision ID: jml@canonical.com-20070422230056-mfu7bo3ydrbbag7p
Merge bzr.dev, resolving conflicts in error code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        error = errors.TooManyConcurrentRequests("a medium")
120
120
        self.assertEqualDiff("The medium 'a medium' has reached its concurrent "
121
121
            "request limit. Be sure to finish_writing and finish_reading on "
122
 
            "the current request that is open.",
 
122
            "the currently open request.",
123
123
            str(error))
124
124
 
125
125
    def test_unknown_hook(self):
248
248
            "Cannot find registered bug tracker called xxx on %s" % branch,
249
249
            str(error))
250
250
 
 
251
    def test_unexpected_smart_server_response(self):
 
252
        e = errors.UnexpectedSmartServerResponse(('not yes',))
 
253
        self.assertEqual(
 
254
            "Could not understand response from smart server: ('not yes',)",
 
255
            str(e))
 
256
 
251
257
 
252
258
class PassThroughError(errors.BzrError):
253
259