def METHOD_NAME(self):
    """
    Test that get_generated_certificates returns the correct number of certificates.
    """
    course_grade_params = {
        "user_id": self.user.id,
        "course_id": self.first_course.id,
        "percent_grade": 77.7,
        "letter_grade": "pass",
        "passed": True,
        "passed_timestamp": datetime.now(),
    }
    PersistentCourseGrade.update_or_create(**course_grade_params)
    assert get_generated_certificates() == 1