'Scenario: Can create content that is only visible to students in particular cohorts
Given that I have course with 6 problems, 1 staff member, and 6 students
When I enable cohorts in the course
And I add the Course Modes for Verified and Audit
And I create two content groups, Content Group A, and Content Group B, in the course
And I link one problem to Content Group A
And I link one problem to Content Group B
And I link one problem to the Verified Group
And I link one problem to the Audit Group
And I link one problem to both Content Group A and Content Group B
And one problem remains unlinked to any Content Group
And I create two manual cohorts, Cohort A and Cohort B,
linked to Content Group A and Content Group B, respectively
And I assign one student to each manual cohort
And I assign one student to each enrollment track
And one student remains in the default cohort
Then the staff member can see all 6 problems
And the student in Cohort A can see all the problems linked to A
And the student in Cohort B can see all the problems linked to B
And the student in Verified can see the problems linked to Verified and those not linked to a Group
And the student in Audit can see the problems linked to Audit and those not linked to a Group
And the student in the default cohort can ony see the problem that is unlinked to any Content Group'

def test_cohorted_courseware(self):

    self.enable_cohorting(self.course_fixture)
    self.create_content_groups()
    self.link_problems_to_content_groups_and_publish()
    self.create_cohorts_and_assign_students()
    self.view_cohorted_content_as_different_users()
