def __getattr__(self, name):
        """
        Gets an attribute of this fake module from its attrs.

        @raise AttributeError: When the requested attribute is missing.
        """
        try:
            return self._attrs[name]
        except KeyError:
            raise AttributeError()

        Gets an attribute of this fake module from its attrs.

        @raise AttributeError: When the requested attribute is missing.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_setup.py