Tests for Perspective Broker module.
TODO: update protocol level tests to use new connection API, leaving only specific tests for old API.
Class | Dummy | Undocumented |
Class | DummyPerspective | An IPerspective
avatar which will be used in some tests. |
Class | DummyRealm | Undocumented |
Class | IOPump | Utility to pump data between clients and servers for protocol testing. |
Function | connectServerAndClient | Create a server and a client and connect the two with an IOPump . |
Function | connectedServerAndClient | Connect a client and server Broker together with
an IOPump |
Class | SimpleRemote | Undocumented |
Class | NestedRemote | Undocumented |
Class | SimpleCopy | Undocumented |
Class | SimpleLocalCopy | Undocumented |
Class | SimpleFactoryCopy | |
Function | createFactoryCopy | Factory of SimpleFactoryCopy ,
getting a created instance given the id found in
state . |
Class | NestedCopy | Undocumented |
Class | SimpleCache | Undocumented |
Class | NestedComplicatedCache | Undocumented |
Class | VeryVeryComplicatedCacheable | Undocumented |
Class | RatherBaroqueCache | Undocumented |
Class | SimpleLocalCache | Undocumented |
Class | NestedCache | Undocumented |
Class | Observable | Undocumented |
Class | DeferredRemote | No class docstring; 1/4 methods documented |
Class | Observer | Undocumented |
Class | NewStyleCopy | Undocumented |
Class | NewStyleCopy2 | Undocumented |
Class | NewStyleCacheCopy | Undocumented |
Class | Echoer | Undocumented |
Class | CachedReturner | Undocumented |
Class | NewStyleTests | No class docstring; 5/5 methods documented |
Class | ConnectionNotifyServerFactory | A server factory which stores the last connection and fires a Deferred on
connection made. This factory can handle only one client connection. |
Class | NewStyleCachedTests | No class docstring; 3/3 methods documented |
Class | BrokerTests | Undocumented |
Function | finishedCallback | Undocumented |
Class | Pagerizer | Undocumented |
Class | FilePagerizer | Undocumented |
Class | PagingTests | Test pb objects sending data by pages. |
Class | DumbPublishable | Undocumented |
Class | DumbPub | Undocumented |
Class | GetPublisher | Undocumented |
Class | DisconnectionTests | Test disconnection callbacks. |
Class | FreakOut | Undocumented |
Class | BadCopyable | Undocumented |
Class | BadCopySet | Undocumented |
Class | LocalRemoteTest | Undocumented |
Class | MyPerspective | |
Class | TestRealm | 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. |
Class | MyView | Undocumented |
Class | LeakyRealm | A realm which hangs onto a reference to the mind object in its logout function. |
Class | NewCredLeakTests | Tests to try to trigger memory leaks. |
Class | NewCredTests | Tests related to the twisted.cred support in PB. |
Class | NonSubclassingPerspective | Undocumented |
Class | NSPTests | Tests for authentication against a realm where the IPerspective
implementation is not a subclass of Avatar . |
Interface | IForwarded | Interface used for testing util.LocalAsyncForwarder . |
Class | Forwarded | Test implementation of IForwarded . |
Class | SpreadUtilTests | Tests for twisted.spread.util . |
Class | PBWithSecurityOptionsTests | Test security customization. |
Class | _ReconnectingFakeConnectorState | Manages connection notifications for a _ReconnectingFakeConnector
instance. |
Class | _ReconnectingFakeConnector | A fake IConnector
that can fire Deferred s when
its connect method is called. |
Create a server and a client and connect the two with an IOPump
.
Parameters | test | the test case where the client and server will be used. (type: twisted.trial.unittest.TestCase ) |
clientFactory | The factory that creates the client object. (type: twisted.spread.pb.PBClientFactory ) | |
serverFactory | The factory that creates the server object. (type: twisted.spread.pb.PBServerFactory ) | |
Returns | a 3-tuple of (client, server, pump) (type: (twisted.spread.pb.Broker ,
twisted.spread.pb.Broker ,
IOPump )) |
Connect a client and server Broker
together with
an IOPump
Parameters | realm | realm to use, defaulting to a DummyRealm |
Returns | a 3-tuple (client, server, pump). |
Factory of SimpleFactoryCopy
,
getting a created instance given the id
found in
state
.