[issue15464] ssl: add set_msg_callback function

Chris Jerdonek report at bugs.python.org
Tue Jul 31 05:59:16 CEST 2012


Chris Jerdonek added the comment:

I haven't commented on the content of your patch (I'm not knowledgeable enough in this area), but as for your test, I noticed that you removed the part that asserted something about the argument passed to cb().

Ideally when testing a callback, you want to test whatever is important about it, like: that it gets called at the right times (and as many times as it should), and that it is getting passed the right data.

So you might also want to make whatever assertions are appropriate about the packet(s) passed to cb().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15464>
_______________________________________


More information about the Python-bugs-list mailing list