'Destroying a certificate should generate a 204 response'

def test_delete_certificate(self):

    Certificate.objects.create(owner=self.user, common_name=u'autotest.example.com', certificate=self.autotest_example_com_cert)
    url = u'/v1/certs/autotest.example.com'
    response = self.client.delete(url, HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    self.assertEqual(response.status_code, 204)
    Certificate.objects.create(owner=self.user, common_name=u'*.example.com', certificate=self.autotest_example_com_cert)
    url = u'/v1/certs/*.example.com'
    response = self.client.delete(url, HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    self.assertEqual(response.status_code, 204)
