'Create certificate for the course.'

def _add_course_certificates(self, count=1, signatory_count=0, is_active=True):

    signatories = [{'name': ('Signatory_Name    ' + str(i)), 'title': ('Signatory_Title    ' + str(i)), 'organization': ('Signatory_Organization    ' + str(i)), 'signature_image_path': '/static/certificates/images/demo-sig{}.png'.format(i), 'id': i} for i in xrange(signatory_count)]
    certificates = [{'id': i, 'name': ('Name    ' + str(i)), 'description': ('Description    ' + str(i)), 'course_title': ('course_title_' + str(i)), 'signatories': signatories, 'version': 1, 'is_active': is_active} for i in xrange(count)]
    self.course.certificates = {'certificates': certificates}
    self.course.cert_html_view_enabled = True
    self.course.save()
    self.store.update_item(self.course, self.user.id)
