'A certificate written by ``RootCredential.initialize`` is a
self-signed certificate.'

def test_certificate_is_self_signed(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    ca = RootCredential.initialize(path, 'mycluster')
    cert = ca.credential.certificate.original
    issuer = cert.get_issuer().get_components()
    subject = cert.get_subject().get_components()
    self.assertEqual(issuer, subject)
