def test_that_a_basic_reduction_will_produce_the_same_result_as_the_ISISIndirectEnergyTransfer_algorithm(self):
        reference = ISISIndirectEnergyTransfer(InputFiles=['IRS26176.RAW'],
                                               Instrument='IRIS',
                                               Analyser='graphite',
                                               Reflection='002',
                                               SpectraRange=[3, 53])

        workspace = ISISIndirectEnergyTransferWrapper(InputFiles=['IRS26176.RAW'],
                                                      Instrument='IRIS',
                                                      Analyser='graphite',
                                                      Reflection='002',
                                                      SpectraRange=[3, 53])

        self.assertTrue(CompareWorkspaces(reference, workspace)[0])
    def test_that_a_reduction_performed_with_a_grouping_method_of_all_will_produce_the_same_result_as_the_ISISIndirectEnergyTransfer_algorithm(self):
        reference = ISISIndirectEnergyTransfer(InputFiles=['IRS26176.RAW'],
                                               Instrument='IRIS',
                                               Analyser='graphite',
                                               Reflection='002',
                                               SpectraRange=[3, 53],
                                               GroupingMethod='All')

        workspace = ISISIndirectEnergyTransferWrapper(InputFiles=['IRS26176.RAW'],
                                                      Instrument='IRIS',
                                                      Analyser='graphite',
                                                      Reflection='002',
                                                      SpectraRange=[3, 53],
                                                      GroupingMethod='All')

        self.assertTrue(CompareWorkspaces(reference, workspace)[0])
    def test_a_reduction_with_multiple_files_when_summing_each_of_the_runs_will_produce_the_same_result_as_the_ISISIndirectEnergyTransfer_algorithm(self):
        reference = ISISIndirectEnergyTransfer(InputFiles=['IRS26176.RAW', 'IRS26173.RAW'],
                                               SumFIles=True,
                                               Instrument='IRIS',
                                               Analyser='graphite',
                                               Reflection='002',
                                               SpectraRange=[3, 53])

        workspace = ISISIndirectEnergyTransferWrapper(InputFiles=['IRS26176.RAW', 'IRS26173.RAW'],
                                                      SumFIles=True,
                                                      Instrument='IRIS',
                                                      Analyser='graphite',
                                                      Reflection='002',
                                                      SpectraRange=[3, 53])

        self.assertTrue(CompareWorkspaces(reference, workspace)[0])
    def test_that_a_reduction_using_a_map_file_will_produce_the_same_result_as_the_ISISIndirectEnergyTransfer_algorithm(self):
        reference = ISISIndirectEnergyTransfer(InputFiles=['OSI97919.raw'],
                                               Instrument='OSIRIS',
                                               Analyser='graphite',
                                               Reflection='002',
                                               SpectraRange=[963, 1004],
                                               GroupingMethod='File',
                                               MapFile='osi_002_14Groups.map')

        workspace = ISISIndirectEnergyTransferWrapper(InputFiles=['OSI97919.raw'],
                                                      Instrument='OSIRIS',
                                                      Analyser='graphite',
                                                      Reflection='002',
                                                      SpectraRange=[963, 1004],
                                                      GroupingMethod='File',
                                                      MapFile='osi_002_14Groups.map')

        self.assertTrue(CompareWorkspaces(reference, workspace)[0])