def test_successfulCertificateVerification(self):
        onData = defer.Deferred()
        self.loopback(sslverify.OpenSSLCertificateOptions(privateKey=self.sKey,
                            certificate=self.sCert, verify=False,
                            requireCertificate=False),
                      sslverify.OpenSSLCertificateOptions(verify=True,
                            requireCertificate=True, caCerts=[self.sCert]),
                      onData=onData)

        return onData.addCallback(
                lambda result: self.assertEquals(result, WritingProtocol.byte))
Test a successful connection with client certificate validation on
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_sslverify.py/OpenSSLOptions.test_successfulCertificateVerification