def write_all_rpc_commands(dirname, node):
    '\n    Write out a list of all RPC functions available in `bitcore-cli` for\n    coverage comparison. This will only happen once per coverage\n    directory.\n\n    Args:\n        dirname (str): temporary test dir\n        node (AuthServiceProxy): client\n\n    Returns:\n        bool. if the RPC interface file was written.\n\n    '
    filename = os.path.join(dirname, REFERENCE_FILENAME)
    if os.path.isfile(filename):
        return False
    help_output = node.help().split('\n')
    commands = set()
    for line in help_output:
        line = line.strip()
        if (line and (not line.startswith('='))):
            commands.add(('%s\n' % line.split()[0]))
    with open(filename, 'w', encoding='utf8') as f:
        f.writelines(list(commands))
    return True
Write out a list of all RPC functions available in `bitcore-cli` for
coverage comparison. This will only happen once per coverage
directory.

Args:
    dirname (str): temporary test dir
    node (AuthServiceProxy): client

Returns:
    bool. if the RPC interface file was written.
def write_all_rpc_commands(dirname, node):
    '\n    Write out a list of all RPC functions available in `bitcore-cli` for\n    coverage comparison. This will only happen once per coverage\n    directory.\n\n    Args:\n        dirname (str): temporary test dir\n        node (AuthServiceProxy): client\n\n    Returns:\n        bool. if the RPC interface file was written.\n\n    '
    filename = os.path.join(dirname, REFERENCE_FILENAME)
    if os.path.isfile(filename):
        return False
    help_output = node.help().split('\n')
    commands = set()
    for line in help_output:
        line = line.strip()
        if (line and (not line.startswith('='))):
            commands.add(('%s\n' % line.split()[0]))
    with open(filename, 'w', encoding='utf8') as f:
        f.writelines(list(commands))
    return True