'Specifying a L{Certificate} object for L{trustRoot} will result in that
certificate being the only trust root for a client.'

def test_trustRootSpecificCertificate(self):

    (caCert, serverCert) = certificatesForAuthorityAndServer()
    (otherCa, otherServer) = certificatesForAuthorityAndServer()
    (sProto, cProto, pump) = loopbackTLSConnection(trustRoot=caCert, privateKeyFile=pathContainingDumpOf(self, serverCert.privateKey), chainedCertFile=pathContainingDumpOf(self, serverCert))
    pump.flush()
    self.assertIsNone(cProto.wrappedProtocol.lostReason)
    self.assertEqual(cProto.wrappedProtocol.data, sProto.wrappedProtocol.greeting)
