Tag: Python
Check stdin, stdout and stderr in Python unit testing
2021-08-19In blackbox testing, we can use diff command to check an output file against expected results. To check standard output during unit testing, we can use a mock stdout and stderr to capture any outputs.