'Each certificate created by ``RootCredential.initialize`` has a unique
cluster UUID, stored in the distinguished name organizational unit
name.'

def test_cluster_uuid(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    ca = RootCredential.initialize(path, 'mycluster')
    cert = ca.credential.certificate
    path2 = FilePath(self.mktemp())
    path2.makedirs()
    ca2 = RootCredential.initialize(path2, 'mycluster2')
    cert2 = ca2.credential.certificate
    self.assertNotEqual(UUID(hex=cert.getSubject().OU), UUID(hex=cert2.getSubject().OU))
