def test_replace_workspace_name_suffix(self):
     tests = {
         self.test_ws_name: "suffix",
         "_".join([self.test_ws_name, "test"]): "suffix"
     }
     for workspace_name, suffix in iteritems(tests):
         self.assertEquals(
             lutils.replace_workspace_name_suffix(workspace_name, suffix),
             self.var_ws_name.format(1, suffix))
예제 #2
0
 def add_runs(self, l, r, suffix):
     # prevent new suffix being appended to old one
     out = lutils.replace_workspace_name_suffix(l, suffix)
     mantid.Plus(l, r, OutputWorkspace=out)
     return out
예제 #3
0
 def add_runs(self, l, r, suffix):
     # prevent new suffix being appended to old one
     out = lutils.replace_workspace_name_suffix(l, suffix)
     mantid.Plus(l, r, OutputWorkspace=out)
     return out
예제 #4
0
 def test_replace_workspace_name_suffix(self):
     tests = {self.test_ws_name: "suffix", "_".join(
         [self.test_ws_name, "test"]): "suffix"}
     for workspace_name, suffix in iteritems(tests):
         self.assertEquals(lutils.replace_workspace_name_suffix(
             workspace_name, suffix), self.var_ws_name.format(1, suffix))