'Regenerate a test course and cohorts for each test'

def setUp(self):

    super(TestCohortsAndPartitionGroups, self).setUp()
    self.test_course_key = ToyCourseFactory.create().id
    self.course = modulestore().get_course(self.test_course_key)
    self.first_cohort = CohortFactory(course_id=self.course.id, name='FirstCohort')
    self.second_cohort = CohortFactory(course_id=self.course.id, name='SecondCohort')
    self.partition_id = 1
    self.group1_id = 10
    self.group2_id = 20
