def test_get_asymmetry_workspace_names_returns_nothing_if_workspace_is_hidden_for_rebinned(self): group = create_group_populated_by_two_rebinned_workspaces() group._asymmetry_estimate_rebin[str([22222])].hide() workspace_list = group.get_asymmetry_workspace_names_rebinned([[22222]]) self.assertEqual(workspace_list, [])
def test_get_asymmetry_workspace_names_returns_relevant_workspace_names_if_workspace_is_not_hidden_for_rebinned( self): group = create_group_populated_by_two_rebinned_workspaces() workspace_list = group.get_asymmetry_workspace_names_rebinned([[22222] ]) self.assertEqual(workspace_list, ['asymmetry_name_22222_rebin'])