def test_callbacks_arent_called_by_default(self):
    '\n        If both the client and the server have registered OCSP callbacks, but\n        the client does not send the OCSP request, neither callback gets\n        called.\n        '

    def ocsp_callback(*args, **kwargs):
        pytest.fail('Should not be called')
    client = self._client_connection(callback=ocsp_callback, data=None, request_ocsp=False)
    server = self._server_connection(callback=ocsp_callback, data=None)
    handshake_in_memory(client, server)
If both the client and the server have registered OCSP callbacks, but
the client does not send the OCSP request, neither callback gets
called.
def test_callbacks_arent_called_by_default(self):
    '\n        If both the client and the server have registered OCSP callbacks, but\n        the client does not send the OCSP request, neither callback gets\n        called.\n        '

    def ocsp_callback(*args, **kwargs):
        pytest.fail('Should not be called')
    client = self._client_connection(callback=ocsp_callback, data=None, request_ocsp=False)
    server = self._server_connection(callback=ocsp_callback, data=None)
    handshake_in_memory(client, server)