python unittest: can't call decorated test
I think the problem is that the decorated function doesn't have the same name and, also, it doesn't satisfy the pattern to be considered a test method.
Using functools.wrap
to decorate decorator
should fix your problem. More information here.