'Tests creating a wildcard certificate, which should be disabled.'

def test_create_wildcard_certificate(self):

    body = {u'certificate': self.autotest_example_com_cert, u'key': self.key, u'common_name': u'*.example.com'}
    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, 400)
    self.assertEqual(json.loads(response.content), {u'common_name': [u'Wildcard    certificates    are    not    supported']})
