review uses of unittest setup/teardown
Brought to you by:
pabigot
It appears most uses of the setUp and tearDown functions in the unittest framework may be wrong, using the per-test version instead of the pre/post testcase version as was intended. Review this for validation/simplification.
setUpClass and tearDownClass weren't added until Python 2.7, and we still need to support 2.6 if not 2.5 and 2.5. Since the code works, and the cleaner solution isn't available, we'll live with expensive setup and teardown, or move it outside the TestCase where the class versions were used.