Decorator to add setup and/or teardown methods to a test function:
@with_setup(setup, teardown) def test_something(): " ... "
Note that with_setup is useful only for test functions, not for test methods or inside of TestCase subclasses.
mvpa2.testing.tools.timed
mvpa2.testing.tools.with_tempfile
Enter search terms or a module, class or function name.