Contribute Media
A thank you to everyone who makes this possible: Read More

The wonder and the horror of the mock module


The "mock" module is a powerful (and fun!) tool for unit testing, and it comes built in to the the Python standard library. I'll give an overview of some of the more useful features of the module, and finish with a warning about the dangers of too much mockery.


Improve this page