[TIP] Grand children of TestCase don't work

Jonathan Lange jml at mumak.net
Tue Aug 19 17:00:52 PDT 2008


On Wed, Aug 20, 2008 at 6:58 AM, Gustavo Narea <me at gustavonarea.net> wrote:
> Hello, everyone.
>
> I've created a unittest.TestCase descendant, which contains some utilities
> for testing some components of a web framework. Every application based on
> this framework should subclass this base class once, and the rest of the
> test cases must also subclass the base TestCase of the application (which
> is a direct descendant of _my_ descendant of TestCase).
>

You have to call the constructor of TestCase. It's the call_dad
business that's causing you problems.

jml



More information about the testing-in-python mailing list