'Sets the content group associated with the cohort currently being edited.
If content_group is None, un-links the cohort from any content group.
Presses Save to update the cohort\'s settings.'

def set_cohort_associated_content_group(self, content_group=None, select_settings=True):

    if select_settings:
        self.select_cohort_settings()
    if (content_group is None):
        self.q(css=self._bounded_selector(self.no_content_group_button_css)).first.click()
    else:
        self._select_associated_content_group(content_group)
    self.save_cohort_settings()
