We have the same requirement and you can take a look at the source of
agilo if you want to see how we do it. Get it at
<http://www.agile42.com/cms/pages/agilo/> (need to download the source code)
In a nutshell:
* We adapted unittest.TestCase to be able to use windmill
* We added the concept of environments to this (we have a superclass for
all our tests) so the browser is brought up by the first test that needs
it and brought down by the last test that uses windmill.
* Each testClass has one setUp(self): method that does all the
dependency setup
* There's more, but that should give you the idea.
Regards,
Martin