pip-grep and pip-diff were previously not tested at all. Ideally they
would be unit-tested from Python, however they'd need some refactoring
(they can't even be imported at present), so for now this is better than
nothing.
Another option for the future is possibly:
https://scripttest.readthedocs.io