Testing your Python logging like a boss

How to properly test that your Python code logs what you expect.