I would like to skip some test functions when a condition is met, for example:
@skip_unless(condition)
def test_method(self):
...
Here I expect the test method to be reported as skipped if condition
evaluated to true. I was able to do this with some effort with nose, but I would like to see if it is possible in nose2.
Related question describes a method for skipping all tests in nose2.