'Tests that a student that is a currently enrolled verified student cannot
accidentally change their enrollment mode'

def test_change_to_default_if_verified(self):

    CourseEnrollment.enroll(self.user, self.course.id, mode=u'verified')
    self.assertTrue(CourseEnrollment.is_enrolled(self.user, self.course.id))
    response = self._enroll_through_view(self.course)
    self.assertEqual(response.status_code, 400)
    (enrollment_mode, is_active) = CourseEnrollment.enrollment_mode_for_user(self.user, self.course.id)
    self.assertTrue(is_active)
    self.assertEqual(enrollment_mode, u'verified')
