tests: test_cli_progress uses StringIO to check the output.

Gives us more readable unit tests.