Module Expr Str ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias If BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad orelse FunctionDef arguments args defaults vararg kwarg body With NameLoad body Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Backport of `django.test.utils.override_settings` from Django 1.3 and above.
 functools wraps django.conf settings UserSettingsHolder override_settings N/A object N/A N/A 
    Acts as either a decorator, or a context manager. If it's a decorator it
    takes a function and returns a wrapped function. If it's a contextmanager
    it's used with the ``with`` statement. In either event entering/exiting
    are called before and after, respectively, the function/block is executed.
     __init__ N/A N/A self N/A kwargs N/A N/A N/A self options kwargs N/A N/A self wrapped N/A settings _wrapped N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A self enable N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A N/A N/A self disable N/A __call__ N/A N/A self test_func N/A N/A django.test TransactionTestCase N/A N/A N/A isinstance test_func type N/A issubclass test_func TransactionTestCase N/A N/A original_pre_setup N/A test_func _pre_setup N/A original_post_teardown N/A test_func _post_teardown _pre_setup N/A N/A innerself N/A N/A N/A N/A N/A self enable N/A N/A original_pre_setup innerself N/A _post_teardown N/A N/A innerself N/A N/A N/A N/A original_post_teardown innerself N/A N/A N/A self disable N/A N/A N/A test_func _pre_setup _pre_setup N/A N/A test_func _post_teardown _post_teardown N/A test_func N/A inner N/A N/A N/A args kwargs N/A N/A self N/A N/A N/A test_func args kwargs N/A N/A wraps test_func N/A inner N/A enable N/A N/A self N/A N/A N/A override N/A UserSettingsHolder N/A settings _wrapped N/A N/A key new_value N/A N/A N/A self options items N/A N/A N/A setattr override key new_value N/A N/A settings _wrapped override N/A disable N/A N/A self N/A N/A N/A N/A settings _wrapped N/A self wrapped N/A key N/A self options N/A N/A new_value N/A getattr settings key None N/A N/A