@with_setup(setup=cleanup)
def test_call_and_reply():
    def setup_cb():
        cmd = 'let g:result = rpcrequest(%d, "client-call", 1, 2, 3)' % cid
        vim.command(cmd)
        eq(vim.vars['result'], [4, 5, 6])
        vim.stop_loop()

    def request_cb(name, args):
        eq(name, 'client-call')
        eq(args, [1, 2, 3])
        return [4, 5, 6]

    vim.run_loop(request_cb, None, setup_cb)
dataset/ETHPy150Open neovim/python-client/test/test_client_rpc.py/test_call_and_reply/original