'Create a certificate entry.'

def _create_cert(self, course_key, user, status, mode=CourseMode.HONOR):

    CourseEnrollmentFactory.create(user=user, course_id=course_key, mode=mode)
    GeneratedCertificate.eligible_certificates.create(user=user, course_id=course_key, status=status)
