I'd rather check for the exception message than the stderr output, as it's cleaner and more robust.
In the other tests we cannot do that because argparse (and for consistency reasons the installer itself, exits with an erorr code instead of raising an exception)