'Ensure that already enrolled "verified" students cannot be downgraded
to "honor"'

def test_enroll_already_enrolled_student(self):

    course_enrollment = CourseEnrollment.objects.get(user=self.enrolled_student, course_id=self.course.id)
    course_enrollment.mode = u'verified'
    course_enrollment.save()
    self.assertEqual(course_enrollment.mode, u'verified')
    self._change_student_enrollment(self.enrolled_student, self.course, 'enroll')
    course_enrollment = CourseEnrollment.objects.get(user=self.enrolled_student, course_id=self.course.id)
    manual_enrollments = ManualEnrollmentAudit.objects.all()
    self.assertEqual(manual_enrollments.count(), 1)
    self.assertEqual(manual_enrollments[0].state_transition, ENROLLED_TO_ENROLLED)
    self.assertEqual(course_enrollment.mode, u'verified')
