How can a user of a library run his own initialization code (setting debug levels of loggers for example) before running tests supplied with the library? Python\'s uni
uni
You could do the set-up work before calling unittest.main.
Or you could subclass the test suite and run a class-level setup method.
Or you could have the test setup incorporate a callback to a user-defined setup method.