'Tests creating a certificate.'

def test_create_certificate_with_domain(self):

    body = {u'certificate': self.autotest_example_com_cert, u'key': self.key}
    response = self.client.post(self.url, json.dumps(body), content_type=u'application/json', HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    self.assertEqual(response.status_code, 201)
