https://toxigon.com/writing-testable-python-code
How to Write Testable Python Code: Tips and Best Practices