def METHOD_NAME(self, class_name, class_type):
    # TODO Clean old nodes
    # Setup a clean node to run each test
    self.stop_nodes()
    for i in range(len(self.nodes)):
        datadir = get_datadir_path(self.options.tmpdir, i)
        shutil.rmtree(datadir)
    old_pos_files = ["initial_nodes.json", "genesis_file", "waypoint_config", "public_key"]
    for f in old_pos_files:
        os.remove(os.path.join(self.options.tmpdir, f))
    shutil.rmtree(os.path.join(self.options.tmpdir, "private_keys"))
    self.nodes = []
    self.add_nodes(1)
    node_index = len(self.nodes) - 1
    initialize_datadir(self.options.tmpdir, node_index, PortMin.n, self.conf_parameters)
    self.start_node(node_index)
    obj = class_type(self.nodes[node_index])
    for name in dir(obj):
        m = getattr(obj, name)
        if type(m) is types.MethodType and name.startswith("test_"):
            self.log.info("Test " + class_name + "." + name)
            m()