[TIP] Unit testing functions which call super
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python