def test_set_proxycommand(self, mock_ProxyCommand):
        """
        Loads proxy commands from ssh config file
        """
        ssh_config_file_path = os.path.join(
            get_resources_base_path(), "ssh", "dummy_ssh_config"
        )
        cfg.CONF.set_override(
            name="ssh_config_file_path",
            override=ssh_config_file_path,
            group="ssh_runner",
        )
        cfg.CONF.set_override(name="use_ssh_config", override=True, group="ssh_runner")

        conn_params = {
            "hostname": "dummy.host.org",
            "username": "ubuntu",
            "password": "foo",
        }
        mock = ParamikoSSHClient(**conn_params)
        mock.connect()
        mock_ProxyCommand.assert_called_once_with(
            "ssh -q -W dummy.host.org:22 dummy_bastion"
        )

        Loads proxy commands from ssh config file
        
st2actions/tests/unit/test_paramiko_ssh.py