def METHOD_NAME(self, startup_file, startup, test):
    # write startup python file
    with open(Path(self.pd.startup_dir) / startup_file, "w", encoding="utf-8") as f:
        f.write(startup)
    # write simple test file, to check that the startup file was run
    with open(self.fname, "w", encoding="utf-8") as f:
        f.write(test)