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__(self, instance, \*a, \*\*k)

Call self as a function.

execute_deferred_calls(self)

Attributes Documentation

original_method

Methods Documentation

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

Call self as a function.

execute_deferred_calls(self)[source]