rtfd/readthedocs.org — pull request #153 by pazz (2012-01-07 13:19:35+00:00)
Title: improve Mock class

The python import machinery expects __path__ to be a string, so
__getattr__ has to return a mock string instead of a mock object.

__getattr__ now also returns Mock objects instead of the Mock class
and Mock objects are now callable.

credits to teyphoon:
https://github.com/pazz/alot/commit/96e66e0ab7d9439acae9efb88e9c97a8c176a6ef
https://github.com/pazz/alot/commit/022edcff715856024c116e3b2a059fb0517cded9