[TIP] Unit testing functions which call super

David Stanek dstanek at dstanek.com
Wed Aug 13 11:34:34 PDT 2014

On Wed, Aug 13, 2014 at 2:00 PM, Marcin Tustin <
Marcin.Tustin at dealertrack.com> wrote:

>  Hi All,
> I’ve come across a method which I needed to add a unit test for, which
> calls super, e.g.
Is there any reason you can't call the parent's super?  In my view of
testing you want to create an object, feed it input, and then check the
output/side effect. I would stay away from mocking internals like this.

blog: http://www.traceback.org
twitter: http://twitter.com/dstanek
www: http://dstanek.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20140813/4b8ccb93/attachment.htm>

More information about the testing-in-python mailing list