function and return a wrapped function. If it's a contextmanager, use it with the ``with`` statement. In either event, entering/exiting are called before and after, respectively, the function/block is executed.
This method overrides django.test.utils.TestContextDecorator.decorate_class.