'Create the Django DB and model tables, and do other setup.
This isn\'t done in begin() because that\'s too early--the DB has to be
set up *after* the tests are imported so the model registry contains
models defined in tests.py modules. Models are registered at
declaration time by their metaclass.
prepareTestRunner() might also have been a sane choice, except that, if
some plugin returns something from it, none of the other ones get
called. I\'d rather not dink with scores if I don\'t have to.'

def prepareTest(self, test):

    sys_stdout = sys.stdout
    sys.stdout = self.sys_stdout
    self.runner.setup_test_environment()
    self.old_names = self.runner.setup_databases()
    sys.stdout = sys_stdout
