test_osd.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:DeepSea 作者: SUSE 项目源码 文件源码
def osd_o(self):
        with patch.object(osd.OSDConfig, '__init__', lambda self: None):
            print("Constructing the OSDConfig object")
            cnf = osd.OSDConfig()
            cnf.device = '/dev/sdx'
            # monkeypatching the device in the object since __init__
            # is mocked -> skipping the readlink()
            yield cnf
            # everything after the yield is a teardown code
            print("Teardown OSDConfig object")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号