Message166538
| Author |
tweksteen |
| Recipients |
chris.jerdonek, pitrou, tweksteen |
| Date |
2012年07月27日.03:57:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1343361450.64.0.650401217197.issue15464@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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() |
|
History
|
|---|
| 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 |
|