'Verifies that cohort config changes on studio/moduletore side will
not be reflected on lms after the migrations are done.'

def test_cohorting_with_migrations_done(self):

    course = modulestore().get_course(self.toy_course_key)
    user1 = UserFactory(username='test', email='a@b.com')
    user2 = UserFactory(username='test2', email='a2@b.com')
    config_course_cohorts(course, is_cohorted=True, auto_cohorts=['AutoGroup'])
    self.assertEquals(cohorts.get_cohort(user1, course.id).name, 'AutoGroup', 'user1    should    be    auto-cohorted')
    config_course_cohorts_legacy(course, cohorted=True, auto_cohort_groups=['OtherGroup'])
    self.assertEquals(cohorts.get_cohort(user2, course.id).name, 'AutoGroup', 'user2    should    be    assigned    to    AutoGroups')
    self.assertEquals(cohorts.get_cohort(user1, course.id).name, 'AutoGroup', 'user1    should    still    be    in    originally    placed    cohort')
