I have some class-based unit tests running in python\'s unittest2 framework. We\'re using Selenium WebDriver, which has a convenient save_screenshot() method. I
save_screenshot()
Override fail() to generate the screenshot and then call TestCase.fail(self)?
fail()
TestCase.fail(self)