A fake module, suitable for dependency injection in testing.

Method __init__ Initializes a fake module.
Method __getattr__ Gets an attribute of this fake module from its attrs.
def __init__(self, attrs):

Initializes a fake module.

ParametersattrsThe attrs that will be accessible on the module. (type: dict of str (Python names) to objects)
def __getattr__(self, name):

Gets an attribute of this fake module from its attrs.

RaisesAttributeErrorWhen the requested attribute is missing.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.