'A certificate written by ``ControlCredential.initialize`` has the
subject common name "control-service"'

def test_certificate_subject_control_service(self):

    cert = self.credential.credential.certificate.original
    subject = cert.get_subject()
    self.assertEqual(subject.CN, 'control-service')
