Because of the mechanism for catching exceptions in pubs, the UnexpectedInput exception raised by FakeInput never reached the catch statement in the CommandTestCase and raised a FakeSystemExit instead. This commit monkey-patches the exception handler in the ui at the same time as the patching of the input functions to ignore UnexptectedInput at the ui level.
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.