plainbox.testing_utils.io – tools for testing IO

Implementation of context managers for observing IO

class plainbox.testing_utils.io.TestIO(*, input=None, combined=False)[source]

Bases: object

Helper class for capturing stdin, stdout, stderr IO for testing

combined

All output combined from stdout and stderr

stderr

All stderr output

stdout

All stdout output

comments powered by Disqus