Monkeypatching in Python: Neatly hacking test behavior for coverage | Dark Hacker News