示例#1
0
 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()
示例#2
0
 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()
示例#3
0
 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)
示例#5
0
 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)
示例#6
0
 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)