def test_top(): ssh_con = SSHconnection(hostname, username, password, port) out, err = ssh_con.execute_command_buffer("top") print("output from Raspberry Pi: " + out) # assert out == "" #assert out != "" ssh_con.close()
def test_dmesg(logger): ssh_con = SSHconnection(hostname, username, password, port) out, err = ssh_con.execute_command_buffer("dmesg") print("output from Raspberry Pi: " + out) logger.info("output from Raspberry Pi: " + out) # assert out == "" #assert out != "" ssh_con.close()