[TIP] Mock and Sunburnt
Laurens Van Houtven
_ at lvh.cc
Thu Sep 8 12:48:29 PDT 2011
Disclaimer: I have never used Mock.
Defining what "|" does means implementing one (or more, since there's a
symmetrical __ror__ method, too) protocol methods, aka magic methods. That
means you want the MagicMock class.
http://www.voidspace.org.uk/python/mock/magicmock.html
cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110908/f7ce7af1/attachment.htm>
More information about the testing-in-python
mailing list