test_file_handler.py 文件源码

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

项目:projects 作者: tiborsimon 项目源码 文件源码
def test__load_method_called_with_the_right_path(self):
        dummy_path = '/dummy/path'
        with mock.patch(builtin_module + '.open') as mock_open:
            file_handler._load(dummy_path)
            mock_open.assert_called_with(dummy_path, 'r')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号