def test_create_certificate_with_different_common_name(self):
        body = {'certificate': self.autotest_example_com_cert,
                'key': self.key,
                'common_name': 'foo.example.com'}
        response = self.client.post(self.url, json.dumps(body), content_type='application/json',
                                    HTTP_AUTHORIZATION='token {}'.format(self.token))
        self.assertEqual(response.status_code, 201)
        self.assertEqual(response.data['common_name'], 'foo.example.com')
In some cases such as with SAN certificates, the certificate can cover more
dataset/ETHPy150Open deis/deis/controller/api/tests/test_certificate.py/CertificateTest.test_create_certificate_with_different_common_name