def on_connection_close(self):
        self._log_disconnect()

    # Various helpers
Create a mock response with 'raise_for_status' method
dataset/ETHPy150Open benoitc/gaffer/gaffer/sockjs/basehandler.py/BaseHandler.on_connection_close--crossover with--dataset/ETHPy150Open smore-inc/tinys3/tinys3/tests/test_upload_request.py/TestUploadRequest._mock_response