The pexpect module can be used for controlling and testing interactive command-line programs. The wrapper adds testing-oriented features like logging and automatic process termination and default check for process exit status. Related to: https://pagure.io/freeipa/issue/8690 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>