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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/g/r/gruvi-0.9.2/tests/test_ssl.py   gruvi(Download)
        self.assertGreater(len(clientssl[0]), 0)  # the c->s close_notify alert
        # communicate the close_notify to the server
        serverssl, appdata = server.feed_ssldata(clientssl[0])
        self.assertEqual(len(serverssl), 1)
        self.assertGreater(len(serverssl[0]), 0)  # the s->c close_notify
        self.assertEqual(len(appdata), 0)
        self.assertEqual(server.state, SSLPipe.s_unwrapped)
        # send back the server response to the client
        clientssl, appdata = client.feed_ssldata(serverssl[0])

src/g/r/gruvi-HEAD/tests/test_ssl.py   gruvi(Download)
        self.assertGreater(len(clientssl[0]), 0)  # the c->s close_notify alert
        # communicate the close_notify to the server
        serverssl, appdata = server.feed_ssldata(clientssl[0])
        self.assertEqual(len(serverssl), 1)
        self.assertGreater(len(serverssl[0]), 0)  # the s->c close_notify
        self.assertEqual(len(appdata), 0)
        self.assertEqual(server.state, SSLPipe.s_unwrapped)
        # send back the server response to the client
        clientssl, appdata = client.feed_ssldata(serverssl[0])