[issue15464] ssl: add set_msg_callback function
Chris Jerdonek
report at bugs.python.org
Fri Jul 27 05:12:10 CEST 2012
Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:
In your test, is there a reason you don't need to verify that your callback is actually called?
+ def cb(packet):
+ self.assertGreater(len(packet), 0)
+ ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
+ ctx.set_msg_callback(cb)
----------
nosy: +cjerdonek
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15464>
_______________________________________
More information about the Python-bugs-list
mailing list