test_keystone.py 文件源码

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

项目:ceph-lcm 作者: Mirantis 项目源码 文件源码
def test_cannot_authenticate_no_user(mocked_authenticator, configure_model):
    mock = mocked_authenticator.client.get_raw_token_from_identity_service
    mock.side_effect = keystoneauth1.exceptions.ClientException

    with pytest.raises(self_exceptions.Unauthorized):
        mocked_authenticator.authenticate("user", "password")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号