Simon Willison’s Weblog

minimock. Python mock object library for use with doctest, in 25 lines of code.