'Generate test certificate'

def generate_certificate(self, course_id, mode, status):

    test_user = UserFactory()
    GeneratedCertificateFactory.create(user=test_user, course_id=course_id, mode=mode, status=status)
