Preparing "Approval Tests" for refactoring Python

Emily Bache's short example of preparing "Approval Tests" for refactoring Python code is very good. Not only for the approach, but also for how advanced IDEs like PyCharm greatly support developers common editing and refactoring needs.

Reaction: Arjan Codes wrote tests the HARD way - My way is BETTER