def test_willNotAllowNonDeferredOrCoroutine(self):
"""
Passing L{defer.ensureDeferred} a non-coroutine and a non-Deferred will
raise a L{ValueError}.
"""
with self.assertRaises(ValueError):
defer.ensureDeferred("something")
评论列表
文章目录