test_virtual_service.py 文件源码

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

项目:python-kemptech-api 作者: KEMPtechnologies 项目源码 文件源码
def test_without_index_invalid_port(self):
        with patch.object(VirtualService, 'build_real_server') as build_real_server:
            with patch.object(objects, 'get_data'):
                with patch.object(VirtualService, '_get'):
                    self.vs.index = None
                    build_real_server.return_value = sentinel.rs
                    with assert_raises(ValidationError):
                        self.vs.get_real_server('1.1.1.1.', 'junk')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号