def test_server_returns_empty_string(self):
    '\n        If the server returns an empty bytestring from its callback, the\n        client callback is called with the empty bytestring.\n        '
    client_calls = []

    def server_callback(*args):
        return b''

    def client_callback(conn, ocsp_data, ignored):
        client_calls.append(ocsp_data)
        return True
    client = self._client_connection(callback=client_callback, data=None)
    server = self._server_connection(callback=server_callback, data=None)
    handshake_in_memory(client, server)
    assert (len(client_calls) == 1)
    assert (client_calls[0] == b'')
If the server returns an empty bytestring from its callback, the
client callback is called with the empty bytestring.
def test_server_returns_empty_string(self):
    '\n        If the server returns an empty bytestring from its callback, the\n        client callback is called with the empty bytestring.\n        '
    client_calls = []

    def server_callback(*args):
        return b

    def client_callback(conn, ocsp_data, ignored):
        client_calls.append(ocsp_data)
        return True
    client = self._client_connection(callback=client_callback, data=None)
    server = self._server_connection(callback=server_callback, data=None)
    handshake_in_memory(client, server)
    assert (len(client_calls) == 1)
    assert (client_calls[0] == b)