def METHOD_NAME(
    self,
    base_name
):
    self.document.recompute()
    # get analysis working directory and save FreeCAD file
    working_dir = testtools.get_fem_test_tmp_dir(self.pre_dir_name + base_name)
    save_fc_file = join(working_dir, base_name + ".FCStd")
    # fcc_print("Save FreeCAD file to {} ...".format(save_fc_file))
    self.document.saveAs(save_fc_file)
    # write input file
    machine = self.document.SolverMystran.Proxy.createMachine(
        self.document.SolverMystran,
        working_dir,
        True  # set testmode to True
    )
    machine.target = femsolver.run.PREPARE
    machine.start()
    machine.join()  # wait for the machine to finish
    # compare input file with the given one
    inpfile_given = join(
        self.test_file_dir,
        base_name + self.ending
    )
    inpfile_totest = join(
        working_dir,
        self.infilename + self.ending
    )
    # fcc_print("Comparing {}  to  {}".format(inpfile_given, inpfile_totest))
    ret = testtools.compare_inp_files(
        inpfile_given,
        inpfile_totest
    )
    self.assertFalse(
        ret,
        "Mystran write_solver_input for {0} test failed.\n{1}".format(base_name, ret)
    )