def test_exceptions_in_client_bubble_up(self):
    '\n        The callbacks thrown in the client callback bubble up to the caller.\n        '

    class SentinelException(Exception):
        pass

    def server_callback(*args):
        return self.sample_ocsp_data

    def client_callback(*args):
        raise SentinelException()
    client = self._client_connection(callback=client_callback, data=None)
    server = self._server_connection(callback=server_callback, data=None)
    with pytest.raises(SentinelException):
        handshake_in_memory(client, server)
The callbacks thrown in the client callback bubble up to the caller.
def test_exceptions_in_client_bubble_up(self):
    '\n        \n        '

    class SentinelException(Exception):
        pass

    def server_callback(*args):
        return self.sample_ocsp_data

    def client_callback(*args):
        raise SentinelException()
    client = self._client_connection(callback=client_callback, data=None)
    server = self._server_connection(callback=server_callback, data=None)
    with pytest.raises(SentinelException):
        handshake_in_memory(client, server)