test refactor: capture_stdout
repo.get_as_pip_conf always succeed - defaults in use
capture_stdout rewritten