'L{trustRootFromCertificates} rejects any L{OpenSSL.crypto.X509}
instances in the list passed to it.'

def test_trustRootFromCertificatesOpenSSLObjects(self):

    private = sslverify.PrivateCertificate.loadPEM(A_KEYPAIR)
    certX509 = private.original
    exception = self.assertRaises(TypeError, sslverify.trustRootFromCertificates, [certX509])
    self.assertEqual('certificates    items    must    be    twisted.internet.ssl.CertBase    instances', exception.args[0])
