A realm which hangs onto a reference to the mind object in its logout function.

Method __init__ Create a LeakyRealm.
Method requestAvatar Verify that the mind and interface supplied have the expected values (this should really be done somewhere else, like inside a test method) and return an avatar appropriate for the given identifier.

Inherited from TestRealm:

Instance Variable lastPerspective The MyPerspective most recently created and returned from requestAvatar.
Instance Variable perspectiveFactory A one-argument callable which will be used to create avatars to be returned from requestAvatar.
def __init__(self, mindEater):

Create a LeakyRealm.

ParametersmindEatera callable that will be called with the mind object when it is available
def requestAvatar(self, avatarId, mind, interface):

Verify that the mind and interface supplied have the expected values (this should really be done somewhere else, like inside a test method) and return an avatar appropriate for the given identifier.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.