Message166538
I'm not sure what would be the best way to verify that.
What about:
def test_connect_with_msg_callback(self):
with support.transient_internet("svn.python.org"):
self.called = False
def cb(packet):
self.assertGreater(len(packet), 0)
self.called = True
ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
ctx.set_msg_callback(cb)
s = ctx.wrap_socket(socket.socket(socket.AF_INET))
try:
s.connect(("svn.python.org", 443))
self.assertTrue(self.called)
finally:
s.close() |
|
Date |
User |
Action |
Args |
2012-07-27 03:57:30 | tweksteen | set | recipients:
+ tweksteen, pitrou, chris.jerdonek |
2012-07-27 03:57:30 | tweksteen | set | messageid: <1343361450.64.0.650401217197.issue15464@psf.upfronthosting.co.za> |
2012-07-27 03:57:30 | tweksteen | link | issue15464 messages |
2012-07-27 03:57:30 | tweksteen | create | |
|