'A certificate written by ``NodeCredential.initialize`` has the
subject common name "node-{uuid}" where {uuid} is the UUID
generated during the certificate\'s creation.'

def test_certificate_common_name_node_uuid(self):

    cert = self.credential.credential.certificate.original
    subject = cert.get_subject()
    self.assertEqual(subject.CN, 'node-{uuid}'.format(uuid=self.credential.uuid))
