mvpa2.testing.tools.with_setup¶
-
mvpa2.testing.tools.
with_setup
(setup=None, teardown=None)¶ 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.