class documentation
class MonkeyPatchFunction(object): (source)
Constructor: MonkeyPatchFunction(module_or_fcn, monkey_fcn, fcn_name, namespace)
Context manager that temporarily monkey patches the given function.
If a namespace is provided, all functions with same name as the function you are monkey patching that are imported (recursively) by the module_or_fcn module are also monkey patched.
Parameters | |
module | a module or function |
monkey | the function to monkey patch in |
fcn | the name of the function to monkey patch. Required iff module_or_fcn is a module |
namespace | an optional package namespace |
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Instance Variable | fcn |
Undocumented |
Instance Variable | module |
Undocumented |
Instance Variable | monkey |
Undocumented |
Instance Variable | namespace |
Undocumented |
Method | _find |
Undocumented |
Method | _set |
Undocumented |
Instance Variable | _orig |
Undocumented |
Instance Variable | _replace |
Undocumented |