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

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

src/g/r/gruvi-HEAD/tests/test_ssl.py   gruvi(Download)
        self.assertEqual(received, buf)
        # the client initiates a shutdown
        clientssl = client.start_shutdown()
        self.assertEqual(len(clientssl), 1)
        self.assertGreater(len(clientssl[0]), 0)  # the c->s close_notify alert
        self.assertEqual(received, buf)
        # move back to clear again
        clientssl = client.start_shutdown()
        received = communicate(buf, client, server, clientssl, [])
        self.assertEqual(received, buf)
        self.assertEqual(received, buf)
        # tear it down concurrently
        clientssl = client.start_shutdown()
        serverssl = server.start_shutdown()
        received = communicate(buf, client, server, clientssl, serverssl)

src/g/r/gruvi-0.9.2/tests/test_ssl.py   gruvi(Download)
        self.assertEqual(received, buf)
        # the client initiates a shutdown
        clientssl = client.start_shutdown()
        self.assertEqual(len(clientssl), 1)
        self.assertGreater(len(clientssl[0]), 0)  # the c->s close_notify alert
        self.assertEqual(received, buf)
        # move back to clear again
        clientssl = client.start_shutdown()
        received = communicate(buf, client, server, clientssl, [])
        self.assertEqual(received, buf)
        self.assertEqual(received, buf)
        # tear it down concurrently
        clientssl = client.start_shutdown()
        serverssl = server.start_shutdown()
        received = communicate(buf, client, server, clientssl, serverssl)