'When the server verifies and the client presents a valid certificate
for that verification by passing it to
L{sslverify.optionsForClientTLS}, communication proceeds.'

def test_clientPresentsCertificate(self):

    (cProto, sProto, pump) = self.serviceIdentitySetup(u'valid.example.com', u'valid.example.com', validCertificate=True, serverVerifies=True, clientPresentsCertificate=True)
    self.assertEqual(cProto.wrappedProtocol.data, 'greetings!')
    cErr = cProto.wrappedProtocol.lostReason
    sErr = sProto.wrappedProtocol.lostReason
    self.assertIsNone(cErr)
    self.assertIsNone(sErr)
