'Test a successful connection with validation on both server and client
sides.'

def test_successfulSymmetricSelfSignedCertificateVerification(self):

    onData = defer.Deferred()
    self.loopback(sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert, verify=True, requireCertificate=True, caCerts=[self.cCert]), sslverify.OpenSSLCertificateOptions(privateKey=self.cKey, certificate=self.cCert, verify=True, requireCertificate=True, caCerts=[self.sCert]), onData=onData)
    return onData.addCallback((lambda result: self.assertEqual(result, WritingProtocol.byte)))
