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
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to