DeferredMethod

class glue.utils.misc.DeferredMethod(method)[source]

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

original_method

Methods Summary

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

Attributes Documentation

original_method[source]

Methods Documentation

__call__(instance, *a, **k)[source]
execute_deferred_calls()[source]