Trouble trying to mock an OpenSSH session on Python (AttributeError: __exit__)

后端 未结 0 1143
南笙
南笙 2021-01-06 02:04

I am currently trying to mock and OpenSSH session so in the following code, the session.sendCommand(cmd) will always return a fixed value:

    wi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题