'Test that you can create a certificate.'

def test_can_create_certificate(self):

    expected = {u'version': CERTIFICATE_SCHEMA_VERSION, u'name': u'Test    certificate', u'description': u'Test    description', u'is_active': True, u'signatories': []}
    response = self.client.ajax_post(self._url(), data=CERTIFICATE_JSON)
    self.assertEqual(response.status_code, 201)
    self.assertIn('Location', response)
    content = json.loads(response.content)
    certificate_id = self._remove_ids(content)
    self.assertEqual(content, expected)
    self.assert_event_emitted('edx.certificate.configuration.created', course_id=unicode(self.course.id), configuration_id=certificate_id)
