'Test that an enrollment mode that is no longer registered is displayed as \'deleted\',
regardless of the number of current enrollment modes in the course.'

def test_missing_enrollment_mode(self):

    self.verify_visibility_view_contains(self.video_location, [self.NO_CONTENT_OR_ENROLLMENT_GROUPS, self.NO_CONTENT_ENROLLMENT_TRACK_ENABLED])
    self.verify_visibility_view_does_not_contain(self.video_location, [self.ENROLLMENT_GROUPS_TITLE, self.GROUP_NO_LONGER_EXISTS])
    self.set_group_access(self.video_location, ['10'], ENROLLMENT_TRACK_PARTITION_ID)
    self.verify_visibility_view_contains(self.video_location, [self.ENROLLMENT_GROUPS_TITLE, self.GROUP_NO_LONGER_EXISTS])
    CourseModeFactory.create(course_id=self.course.id, mode_slug='audit')
    CourseModeFactory.create(course_id=self.course.id, mode_slug='verified')
    self.verify_visibility_view_contains(self.video_location, [self.ENROLLMENT_GROUPS_TITLE, 'audit    course', 'verified    course', self.GROUP_NO_LONGER_EXISTS])
