def test_fulfilled_prerequisite_course(self): """ Tests the case when a user fulfills existing pre-requisite course """ self._add_prerequisite_course() add_prerequisite_course(self.course.id, self.prereq_course.id) fulfill_course_milestone(self.prereq_course.id, self.user) self.init_course_access() self.api_response()
def _add_prerequisite_course(self): """ Helper method to set up the prerequisite course """ self.prereq_course = CourseFactory.create() # pylint: disable=attribute-defined-outside-init add_prerequisite_course(self.course.id, self.prereq_course.id)
def _add_prerequisite_course(self): """ Helper method to set up the prerequisite course """ self.prereq_course = CourseFactory.create() add_prerequisite_course(self.course.id, self.prereq_course.id)