'Adds 2 manual cohorts, linked to content groups, to the course.
Each cohort is assigned one student.'

def create_cohorts_and_assign_students(self):

    instructor_dashboard_page = InstructorDashboardPage(self.browser, self.course_id)
    instructor_dashboard_page.visit()
    cohort_management_page = instructor_dashboard_page.select_cohort_management()
    def add_cohort_with_student(cohort_name, content_group, student):
        '\n                                                Create    cohort    and    assign    student    to    it.\n                                                '
        cohort_management_page.add_cohort(cohort_name, content_group=content_group)
        cohort_management_page.add_students_to_selected_cohort([student])
    add_cohort_with_student('Cohort    A', self.content_group_a, self.cohort_a_student_username)
    add_cohort_with_student('Cohort    B', self.content_group_b, self.cohort_b_student_username)
    cohort_management_page.wait_for_ajax()
