Bill Flynn 66c90c5d43 Added unittest to cover new behavior pubs
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.
2017-11-30 14:48:50 -05:00
..
2015-12-20 22:20:01 +01:00
2015-12-20 18:51:43 +01:00
2014-04-18 12:58:12 +02:00
2015-12-20 19:26:33 +01:00
2016-06-06 00:25:27 +02:00
2015-12-02 16:36:27 +01:00
2017-10-19 15:46:42 -04:00
2015-12-02 16:36:27 +01:00
2016-06-05 21:48:19 +02:00
2017-07-11 17:08:52 -04:00
2017-08-01 23:43:06 -04:00
2015-05-07 13:17:44 +02:00
2017-07-11 17:08:52 -04:00
2015-05-07 13:17:44 +02:00
2015-05-07 13:17:44 +02:00
2017-08-01 23:43:06 -04:00
2015-05-07 13:17:44 +02:00
2015-12-20 18:51:00 +01:00
2015-05-07 13:17:44 +02:00
2015-12-04 23:44:05 -05:00
2013-11-14 04:40:29 +01:00

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.