'Return the groups (based on CourseModes) for the course associated with this
EnrollmentTrackUserPartition instance. Note that only groups based on selectable
CourseModes are returned (which means that Credit will never be returned).
If a course is using the Verified Track Cohorting pilot feature, this method
returns an empty array regardless of registered CourseModes.'

@property
def groups(self):

    course_key = CourseKey.from_string(self.parameters['course_id'])
    if is_course_using_cohort_instead(course_key):
        return []
    return [Group(ENROLLMENT_GROUP_IDS[mode.slug], unicode(mode.name)) for mode in CourseMode.modes_for_course(course_key, include_expired=True)]
