def create_new_test_node(test_node_class, node_config_helper_class, name, conf, tdir, plugin_paths, bootstrap_cls=None, node_ha=None, client_ha=None):
    config_helper = node_config_helper_class(name, conf, chroot=tdir)
    return test_node_class(name, config_helper=config_helper, config=conf, pluginPaths=plugin_paths, ha=node_ha, cliha=client_ha, bootstrap_cls=bootstrap_cls)
def create_new_test_node(test_node_class, node_config_helper_class, name, conf, tdir, plugin_paths, bootstrap_cls=None, node_ha=None, client_ha=None):
    config_helper = node_config_helper_class(name, conf, chroot=tdir)
    return test_node_class(name, config_helper=config_helper, config=conf, pluginPaths=plugin_paths, ha=node_ha, cliha=client_ha, bootstrap_cls=bootstrap_cls)