def test_client_returns_false_terminates_handshake(self):
    '\n        If the client returns False from its callback, the handshake fails.\n        '

    def server_callback(*args):
        return self.sample_ocsp_data

    def client_callback(*args):
        return False
    client = self._client_connection(callback=client_callback, data=None)
    server = self._server_connection(callback=server_callback, data=None)
    with pytest.raises(Error):
        handshake_in_memory(client, server)
If the client returns False from its callback, the handshake fails.
def test_client_returns_false_terminates_handshake(self):
    '\n        \n        '

    def server_callback(*args):
        return self.sample_ocsp_data

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