twisted.spread.test.test_pb.TestRealm(object)
class documentationtwisted.spread.test.test_pb
(View In Hierarchy)
Known subclasses: twisted.spread.test.test_pb.LeakyRealm
A realm which repeatedly gives out a single instance of MyPerspective
for non-anonymous logins and which gives out a new instance of Echoer
for
each anonymous login.
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 . |
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. |
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.