test_clissh.py 文件源码

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

项目:taf 作者: taf3 项目源码 文件源码
def test_login_false_userpass_ssh(self, credentials):
        """Verify AuthenticationException in case Incorrect password for ssh object.

        """
        ssh_conn = clissh.CLISSH(credentials[0])
        with pytest.raises(paramiko.AuthenticationException):
            ssh_conn = clissh.CLISSH(credentials[0])
            ssh_conn.login(credentials[1], ssh_conn.randstr(30), timeout=5)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号