'Tests that a student can successfully enroll through this view'

def test_enroll_as_default(self):

    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)
