title: Python unittest - perform different actions based on test result?
body: <p>In the python unittest module, how can I perform different tasks based on how the test ends?  I am running selenium webdriver automated tests, and in the case of of a failure or error, I would like to capture a screenshot.  </p>