Re: Hierarchical unit tests

2006-08-02 Thread Peter Otten
Pupeno wrote: > Having A(unittest.TestCase) and B(A), the unittests framework seems not to > run A's test when testing B, right ? Wrong: $ cat hierarchical_tests.py import unittest class A(unittest.TestCase): def test_a(self): pass class B(A): def test_b(self): pass if

Hierarchical unit tests

2006-08-01 Thread Pupeno
Hello, Having A(unittest.TestCase) and B(A), the unittests framework seems not to run A's test when testing B, right ? If so, is there any way to 'fix' it ? that is, make all tests in A, also run for B ? Thanks. -- Pupeno <[EMAIL PROTECTED]> (http://pupeno.com) -- http://mail.python.org/mailman/l