def __init__(self, name, settings): InstrumentInterface.__init__(self, name, settings) self.ERROR_REPORT_NAME = 'toftof_error_report.xml' self.LAST_REDUCTION_NAME = '.mantid_last_toftof_reduction.xml' self.scripter = TOFTOFReductionScripter(name, settings.facility_name) self.attach(TOFTOFSetupWidget(settings))
def setUp(self): self.settingsMock = mock.Mock() self.settingsMock.facility_name = "name of facility" self.settingsMock.instrument_name = "name of instrument" self.setupWidget = TOFTOFSetupWidget(self.settingsMock)