~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

Add test for sending ProtocolThreeResponder.send_error(UnknownSmartMethod(...)).

Show diffs side-by-side

added added

removed removed

Lines of Context:
973
973
    def send_error(self, exception):
974
974
        assert not self.response_sent
975
975
        if isinstance(exception, errors.UnknownSmartMethod):
976
 
            failure = FailedSmartServerResponse('UnknownMethod', exception.verb)
 
976
            failure = request.FailedSmartServerResponse(
 
977
                ('UnknownMethod', exception.verb))
977
978
            self.send_response(failure)
978
979
            return
979
980
        self.response_sent = True