def test_title_for_mdhistoworkspace_with_original(self): with _attach_as_original(self.ws_MD_3D, self.ws_MDE_3D): model = SliceViewerModel(self.ws_MD_3D) self.assertEqual('Sliceviewer - ws_MD_3D', model.get_title())
def test_title_for_mdeventworkspace_just_contains_ws_name(self): model = SliceViewerModel(self.ws_MDE_3D) self.assertEqual('Sliceviewer - ws_MDE_3D', model.get_title())
def test_title_for_mdhistoworkspace_without_original_just_contains_ws_name( self): model = SliceViewerModel(self.ws_MD_3D) self.assertEqual('Sliceviewer - ws_MD_3D', model.get_title())
def test_title_for_matrixworkspace_just_contains_ws_name(self): model = SliceViewerModel(self.ws2d_histo) self.assertEqual('Sliceviewer - ws2d_histo', model.get_title())