'Tests that one can renroll for a course if one has already unenrolled'

def test_change_to_default_if_verified_not_active(self):

    CourseEnrollment.enroll(self.user, self.course.id, mode=u'verified')
    CourseEnrollment.unenroll(self.user, self.course.id)
    (enrollment_mode, is_active) = CourseEnrollment.enrollment_mode_for_user(self.user, self.course.id)
    self.assertFalse(is_active)
    self.assertEqual(enrollment_mode, u'verified')
    response = self._enroll_through_view(self.course)
    self.assertEqual(response.status_code, 200)
    (enrollment_mode, is_active) = CourseEnrollment.enrollment_mode_for_user(self.user, self.course.id)
    self.assertTrue(is_active)
    self.assertEqual(enrollment_mode, CourseMode.DEFAULT_MODE_SLUG)
