def METHOD_NAME(
    mock_target_host, ssh_client, mock_paramiko_ssh_client
):
    with patch("paramiko.RSAKey.from_private_key") as mock_from_private_key:
        mock_from_private_key.side_effect = paramiko.PasswordRequiredException()
        ssh_client.connect(mock_target_host, FULL_CREDENTIALS[0], SSH_PORT, SSH_TIMEOUT)
    assert mock_paramiko_ssh_client.connect.called
    assert ssh_client.connected()