def test_client_negotiates_without_server(self):
    '\n        If the client wants to do OCSP but the server does not, the handshake\n        succeeds, and the client callback fires with an empty byte string.\n        '
    called = []

    def ocsp_callback(conn, ocsp_data, ignored):
        called.append(ocsp_data)
        return True
    client = self._client_connection(callback=ocsp_callback, data=None)
    server = loopback_server_factory(socket=None)
    handshake_in_memory(client, server)
    assert (len(called) == 1)
    assert (called[0] == b'')
If the client wants to do OCSP but the server does not, the handshake
succeeds, and the client callback fires with an empty byte string.
def test_client_negotiates_without_server(self):
    '\n        If the client wants to do OCSP but the server does not, the handshake\n        succeeds, and the client callback fires with an empty byte string.\n        '
    called = []

    def ocsp_callback(conn, ocsp_data, ignored):
        called.append(ocsp_data)
        return True
    client = self._client_connection(callback=ocsp_callback, data=None)
    server = loopback_server_factory(socket=None)
    handshake_in_memory(client, server)
    assert (len(called) == 1)
    assert (called[0] == b)