[TIP] shell-like tests
mbp at sourcefrog.net
Sun Jun 16 13:34:42 PDT 2013
I have just extracted the 'shell-like tests' library from bzr's test
$ echo hello world
This library makes it easy to write integration tests for programs with a
command-line interface: you just give the command and the expected output.
The command can be run as an in-process Python call, to let you precisely
control its environment through mocks etc. This style also makes it pretty
easy for new contributors to add tests.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python