I am building a TUI application which I want to run unittests on. I have made a python script which runs the TUI, gives all key inputs, exits and returns the result. The script