Unittest just checks that both `pubs` and `pubs --help` raise a `SystemExit` exception with error code 0. Due to how argparse handles the `--help` keyword, this is the best way I could think to provide test coverage without heavily modifying the parser structure or the unittest infrastructure. To ensure the `pubs` matches the behavior of `pubs --help`, it now raises the same `SystemExit(0)` exception via `sys.exit(0)`. And in order to catch it in the unittest, I had to modify the `FakeSystemExit` behavior slightly.
1. Install the dependencies using: > pip install -r requirements.txt 2. Run the tests using: > python -m unittest discover If you use nosetest, it will complain about addExpectedFailure, which you can safely disregard.