def test_proxymanager_remote_forced_proxy(target): sshmanager.close_all() host = 'localhost' port = 5000 nr = NetworkSerialPort(target, host=host, port=port, name=None) extras = {'proxy': 'localhost', 'proxy_required': True} nr.extra = extras nhost, nport = proxymanager.get_host_and_port(nr) assert (host, port) != (nhost, nport) sshmanager.close_all()
def sshmanager_fix(): yield sshmanager sshmanager.close_all()