'L{trustRootFromCertificates} accepts either a L{sslverify.Certificate}
or a L{sslverify.PrivateCertificate} instance.'

def test_trustRootFromCertificatesPrivatePublic(self):

    privateCert = sslverify.PrivateCertificate.loadPEM(A_KEYPAIR)
    cert = sslverify.Certificate.loadPEM(A_HOST_CERTIFICATE_PEM)
    mt = sslverify.trustRootFromCertificates([privateCert, cert])
    (sProto, cProto, pump) = loopbackTLSConnectionInMemory(trustRoot=mt, privateKey=privateCert.privateKey.original, serverCertificate=privateCert.original)
    self.assertEqual(cProto.wrappedProtocol.data, 'greetings!')
    self.assertIsNone(cProto.wrappedProtocol.lostReason)
