def test_delete_certificate(self):
        Certificate.objects.create(owner=self.user,
                                   common_name='autotest.example.com',
                                   certificate=self.autotest_example_com_cert)
        url = '/v1/certs/autotest.example.com'
        response = self.client.delete(url, HTTP_AUTHORIZATION='token {}'.format(self.token))
        self.assertEqual(response.status_code, 204)
        # deleting a wildcard cert should work too (even though they're unsupported right now)
        # https://github.com/deis/deis/issues/3533
        Certificate.objects.create(owner=self.user,
                                   common_name='*.example.com',
                                   certificate=self.autotest_example_com_cert)
        url = '/v1/certs/*.example.com'
        response = self.client.delete(url, HTTP_AUTHORIZATION='token {}'.format(self.token))
        self.assertEqual(response.status_code, 204)
Destroying a certificate should generate a 204 response
dataset/ETHPy150Open deis/deis/controller/api/tests/test_certificate.py/CertificateTest.test_delete_certificate