Ian Bicking: the old part of his blog

Comment

I've had some success with dynamic tests, for example in my self-testing test framework.

The trick is to define self-stocking descendants of unittest.TestSuite which hook __call__ to fill themselves with dynamically created instances of unittest.FunctionTestCase (or descendants with appropriate setUp methods). I defined the test functions on the fly but you could use any callable or, for extra evil points, lambda.
Comment on Unittest Rant
by Garth T Kidd