class TestMyClass1(TestBase):
    values = (1, 2), (3, 4)
class_under_test = MyClass1

def test_it(self):
    self.check_all()


class TestMyClass2(TestBase):
    values = ('a', 'b'), ('d', 'e')
class_under_test = MyClass2

def test_it(self):
    self.check_all()
Python unittest TestCase с наследованием