View source on GitHub |
Decorates a test function or class to run itself in a clean context.
google.appengine.runtime.context.ctx_test_util.isolated_context(
*args, **kwargs
)
When used with a class, it will run each test function in its own context. It will also run setUp, tearDown, and doCleanups in that context by default.
Args | |
---|---|
*args
|
See _isolated_context_class and _isolated_context_callable. |
**kwargs
|
See _isolated_context_class and _isolated_context_callable. |
Returns | |
---|---|
The raw function decorator. |