def test_fails_when_class_has_no_such_method_as_to_wrap(wrapper):
with pytest.raises(AttributeError):
wrapper(
cls_to_wrap=object, method_to_wrap_name='no_such_method',
context_manager=None, is_cls_method=False)
with pytest.raises(AttributeError):
wrapper(
cls_to_wrap=object, method_to_wrap_name='no_such_method',
context_manager=None, is_cls_method=True)
test_wrapper.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录