def METHOD_NAME(self):
    """
    Test if the function for filtering recent enrollments works appropriately.
    """
    self._configure_message_timeout(60)
    # get courses through iterating all courses
    courses_list = list(get_course_enrollments(self.student, None, []))
    assert len(courses_list) == 2
    recent_course_list = _get_recently_enrolled_courses(courses_list)
    assert len(recent_course_list) == 1