Examples used in my talk "Testing the untestable, a beginner's guide to mock objects" at EuroPython 2016 https://www.youtube.com/watch?v=nPwDs88g-fY&feature=youtu.be&t=1h43m27s https://slides.com/andrewburrows/mocking