def test_get_certificate_screens_data(self):
        body = {'certificate': self.autotest_example_com_cert, 'key': self.key}
        self.client.post(self.url, json.dumps(body), content_type='application/json',
                         HTTP_AUTHORIZATION='token {}'.format(self.token))
        response = self.client.get('{}/{}'.format(self.url, 'autotest.example.com'),
                                   HTTP_AUTHORIZATION='token {}'.format(self.token))
        expected = {'common_name': 'autotest.example.com',
                    'expires': '2016-03-05T17:14:27UTC'}
        for key, value in expected.items():
            self.assertEqual(response.data[key], value)
Return a JSON encoding of the message that can be used by
dataset/ETHPy150Open deis/deis/controller/api/tests/test_certificate.py/CertificateTest.test_get_certificate_screens_data--crossover with--dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/http.py/HTTPMessage.to_json