コード例 #1
0
def connection_localhost():
    con = SSHConnection("localhost")
    con.connect()
    yield con
    con.disconnect()
コード例 #2
0
def test_sshmanager_invalid_host_raise():
    con = SSHConnection("nosuchhost.notavailable")
    with pytest.raises(ExecutionError):
        con.connect()
コード例 #3
0
ファイル: test_util.py プロジェクト: labgrid-project/labgrid
def connection_localhost_no_cleanup():
    con = SSHConnection("localhost")
    con.connect()
    return con