nose2 ships with various decorators that assist you to write your tests.
nose2.tools.decorators.
with_setup
A decorator that sets the setup() method to be executed before the test.
setup()
It currently works only for function test cases.
with_teardown
A decorator that sets the teardown() method to be after before the test.
teardown()