Title: #5518: [Backport][ipa-4-8] ipatests: use pexpect for controlling interactive
command line utilities
This is a manual backport of #5460.
Link to pagure ticket was added to commit messages.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5518/head:pr5518
git checkout pr5518