def test_load_workspace_from_filename_for_file_path(self):
        mock_alg = mock.MagicMock()
        filename = 'PSI'+ os.sep + 'run_1529_templs0.mon'
        inputs = {
              "DeadTimeTable": "__notUsed",
              "DetectorGroupingTable": "__notUsed"}

        alg, _ = utils.create_load_algorithm(filename,inputs)
        self.assertTrue(filename in alg.getProperty("Filename").value)
    def test_create_load_alg_for_nxs_files(self):
        filename = "EMU00019489.nxs"
        inputs = {}

        alg, psi_data = utils.create_load_algorithm(filename, inputs)
        self.assertFalse(psi_data)
    def test_create_load_alg_for_bin_files(self):
        filename = "deltat_tdc_dolly_1529.bin"
        inputs = {}

        alg, psi_data = utils.create_load_algorithm(filename, inputs)
        self.assertTrue(psi_data)