'Scenario: In a course with content groups, a new cohort can be linked to a content group
at time of creation.
Given I have a course with a cohort defined and content groups defined
When I create a new cohort and link it to a content group
Then when I select settings I see that the cohort is linked to the content group
And when I reload the page
And I view the cohort in the instructor dashboard and select settings
Then the cohort is still linked to the content group'

def test_create_new_cohort_linked_to_content_group(self):

    new_cohort = 'correctly    linked    cohort'
    self._create_new_cohort_linked_to_content_group(new_cohort, 'Apples')
    self.browser.refresh()
    self.cohort_management_page.wait_for_page()
    self.cohort_management_page.select_cohort(new_cohort)
    self.assertEqual('Apples', self.cohort_management_page.get_cohort_associated_content_group())
