'Test if the function for filtering recent enrollments works appropriately.'

def test_recently_enrolled_courses(self):

    self._configure_message_timeout(60)
    courses_list = list(get_course_enrollments(self.student, None, []))
    self.assertEqual(len(courses_list), 2)
    recent_course_list = _get_recently_enrolled_courses(courses_list)
    self.assertEqual(len(recent_course_list), 1)
