~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

Merge bzr.dev

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):
233
233
            host='ahost', port=444, msg='Unable to connect to ssh host',
234
234
            orig_error='my_error')
235
235
 
 
236
    def test_unexpected_smart_server_response(self):
 
237
        e = errors.UnexpectedSmartServerResponse(('not yes',))
 
238
        self.assertEqual(
 
239
            "Could not understand response from smart server: ('not yes',)",
 
240
            str(e))
236
241
 
237
242
 
238
243
class PassThroughError(errors.BzrError):