def METHOD_NAME(self):
    super().METHOD_NAME()
    self.addCleanup(set_current_request, None)
    self.request = get_mock_request(UserFactory())
    self.client.login(username=self.request.user.username, password="test")
    self._set_grading_policy()
    self.course_structure = get_course_blocks(self.request.user, self.course.location)
    self.course_data = CourseData(self.request.user, structure=self.course_structure)
    self.subsection_grade_factory = SubsectionGradeFactory(self.request.user, self.course, self.course_structure)
    CourseEnrollment.enroll(self.request.user, self.course.id)