def METHOD_NAME(user):
    """
    Test that create operation for program certificate management command
    creates the program certificate for a user
    """
    program = ProgramFactory.create()
    course = CourseFactory.create(program=program)
    course_run = CourseRunFactory.create(course=course)
    CourseRunEnrollmentFactory.create(user=user, run=course_run)
    CourseRunGradeFactory.create(course_run=course_run, user=user, passed=True, grade=1)
    CourseRunCertificateFactory.create(user=user, course_run=course_run)
    manage_program_certificates.Command().handle(
        program=program.readable_id, user=user.username
    )
    generated_certificates = ProgramCertificate.objects.filter(
        user=user, program=program
    )
    assert generated_certificates.count() == 1