test_utils.py 文件源码

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

项目:virtualbmc 作者: openstack 项目源码 文件源码
def test_libvirt_open_error(self, mock_open):
        mock_open.side_effect = libvirt.libvirtError('boom')
        self.assertRaises(exception.LibvirtConnectionOpenError,
                          self._test_libvirt_open, mock_open)
        mock_open.assert_called_once_with(self.uri)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号