test_loadmaster.py 文件源码

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

项目:python-kemptech-api 作者: KEMPtechnologies 项目源码 文件源码
def test_with_index(self):
        with patch.object(LoadMaster, 'build_virtual_service') as build_virtual_service:
            with patch.object(models, 'get_data'):
                with patch.object(LoadMaster, '_get'):
                    build_virtual_service.return_value = sentinel.vs
                    res = self.lm.get_virtual_service(index=12)
        assert_equal(res, sentinel.vs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号