Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(26)  |  Call(24)  |  Derive(0)  |  Import(2)

src/g/r/gruvi-0.9.2/tests/test_ssl.py   gruvi(Download)
 
import gruvi
from gruvi.ssl import SSLPipe, SSL
from gruvi.stream import StreamClient, StreamServer
from support import *
    def test_wrapped(self):
        client = SSLPipe(server_side=False)
        server = SSLPipe(server_side=True, keyfile=self.certname, certfile=self.certname)
        buf = b'x' * 1000
        # start client handshake
    def test_shutdown(self):
        client = SSLPipe(server_side=False)
        server = SSLPipe(server_side=True, keyfile=self.certname, certfile=self.certname)
        buf = b'x' * 1000
        # start client handshake

src/g/r/gruvi-HEAD/tests/test_ssl.py   gruvi(Download)
 
import gruvi
from gruvi.ssl import SSLPipe, SSL
from gruvi.stream import StreamClient, StreamServer
from support import *
    def test_wrapped(self):
        client = SSLPipe(server_side=False)
        server = SSLPipe(server_side=True, keyfile=self.certname, certfile=self.certname)
        buf = b'x' * 1000
        # start client handshake
    def test_shutdown(self):
        client = SSLPipe(server_side=False)
        server = SSLPipe(server_side=True, keyfile=self.certname, certfile=self.certname)
        buf = b'x' * 1000
        # start client handshake