DeferredMethod#

class glue.utils.misc.DeferredMethod(method)#

Bases: object

This class stubs out a method, and provides a callable interface that logs its calls. These can later be actually executed on the original (non-stubbed) method by calling executed_deferred_calls

Attributes Summary

Methods Summary

__call__(instance, *a, **k)

Call self as a function.

execute_deferred_calls()

Attributes Documentation

original_method#

Methods Documentation

__call__(instance, *a, **k)#

Call self as a function.

execute_deferred_calls()#