def testDisconnectCleanup(self):
"""
Test if deferreds for iq's that haven't yet received a response
have their errback called on stream disconnect.
"""
d = self.iq.send()
xs = self.xmlstream
xs.connectionLost("Closed by peer")
self.assertFailure(d, ConnectionLost)
return d
test_jabberxmlstream.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录