[Twisted-Python] Adding mock as a test suite dependency

Laurens Van Houtven _ at lvh.cc
Mon Oct 22 12:57:53 EDT 2012


So, mock does have an autospec mode, which is not the default, but does
result in eg methods undefined on the parent raising AttributeError.

I don't know if there's a way to generate a mock from an interface:
particularly the fact that interface methods don't have "self" in their
signature might trip it up.

cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20121022/8a2ac918/attachment.htm 


More information about the Twisted-Python mailing list