'Every context must be in C{MODE_RELEASE_BUFFERS} mode.'

def test_modeIsSet(self):

    opts = sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert)
    opts._contextFactory = FakeContext
    ctx = opts.getContext()
    self.assertEqual(SSL.MODE_RELEASE_BUFFERS, ctx._mode)
