Python testing: Asserting raw byte output with pytest – The Ramblings
https://anonbadger.wordpress.com/2017/11/18/python-testing-asserting-raw-byte-output-with-pytest/
https://anonbadger.wordpress.com/2017/11/18/python-testing-asserting-raw-byte-output-with-pytest/
The Ramblings
Python testing: Asserting raw byte output with pytest
The Code to Test When writing code that can run on both Python2 and Python3, I’ve sometimes found that I need to send and receive bytes to stdout. Here’s some typical code I might write…