def METHOD_NAME(self):
    bootstrap = Bootstrap()
    bootstrap.ztps.set_config_response()
    bootstrap.ztps.set_node_check_response()
    bootstrap.ztps.set_definition_response(actions=[{"action": "test_action"}])
    flash_filename = random_string()
    bootstrap.ztps.set_action_response(
        "test_action", fail_flash_file_action(bootstrap.flash, flash_filename)
    )
    with io.open(bootstrap.rc_eos, "w", encoding="utf8") as fd:
        fd.write(ensure_text(random_string()))
    with io.open(bootstrap.startup_config, "w", encoding="utf8") as fd:
        fd.write(ensure_text(random_string()))
    with io.open(bootstrap.boot_extensions, "w", encoding="utf8") as fd:
        fd.write(ensure_text(random_string()))
    os.mkdir(bootstrap.boot_extensions_folder)
    with io.open(
        os.path.join(bootstrap.boot_extensions_folder, "my_extension"), "w", encoding="utf8"
    ) as fd:
        fd.write(ensure_text(random_string()))
    bootstrap.start_test()
    try:
        self.assertTrue(bootstrap.eapi_node_information_collected())
        self.assertTrue(bootstrap.action_failure())
        self.assertFalse(bootstrap.error)
        self.assertFalse(os.path.isfile(os.path.join(bootstrap.flash, flash_filename)))
        self.assertFalse(os.path.isfile(bootstrap.rc_eos))
        self.assertFalse(os.path.isfile(bootstrap.startup_config))
        self.assertFalse(os.path.isfile(bootstrap.boot_extensions))
        self.assertFalse(os.path.isdir(bootstrap.boot_extensions_folder))
    except AssertionError as assertion:
        print("Output: {}".format(bootstrap.output))
        print("Error: {}".format(bootstrap.error))
        raise_exception(assertion)
    finally:
        bootstrap.end_test()