'This test is meant to ensure that all the course modes show up as groups
on the Group configuration page within the Enrollment Tracks section.
It also checks to make sure that the edit buttons are not available.'

def test_all_course_modes_present(self):

    add_enrollment_course_modes(self.browser, self.course_id, [u'audit', u'verified'])
    group_configurations_page = GroupConfigurationsPage(self.browser, self.course_info[u'org'], self.course_info[u'number'], self.course_info[u'run'])
    group_configurations_page.visit()
    self.assertTrue(group_configurations_page.enrollment_track_section_present)
    self.assertFalse(group_configurations_page.enrollment_track_edit_present)
    groups = group_configurations_page.get_enrollment_groups()
    for g in [self.audit_track, self.verified_track]:
        self.assertTrue((g in groups))
