'Returns the content group associated with the cohort currently being edited.
If no content group is associated, returns None.'

def get_cohort_associated_content_group(self):

    self.select_cohort_settings()
    radio_button = self.q(css=self._bounded_selector(self.no_content_group_button_css)).results[0]
    if radio_button.is_selected():
        return None
    return get_selected_option_text(self.q(css=self._bounded_selector(self.content_group_selector_css)))
