module documentation
Tests for twisted.protocols.amp
.
Class |
|
This is a protocol which responds to AddErrorsCommand , and is used to test that inherited commands can add their own new types of errors, but still respond in the same way to their parents types of errors. |
Class |
|
This is a command which subclasses another command but adds errors to the list. |
Class |
|
Test a few essential properties of AMP boxes, mostly with respect to serialization correctness. |
Class |
|
No class docstring; 0/1 instance variable, 38/38 methods documented |
Class |
|
No class docstring; 1/1 method documented |
Class |
|
This provides a command that will be subclassed. |
Class |
|
Tests for amp.BinaryBoxProtocol . |
Class |
|
An example of a perfectly good command, but the handler is going to return None... |
Class |
|
The AMP CommandDispatcher class dispatches converts AMP boxes into commands and responses using Command.responder decorator. |
Class |
|
These tests verify that commands inherit error conditions properly. |
Class |
|
The CommandLocator should enable users to specify responders to commands as functions that take structured objects, annotated with metadata. |
Class |
|
Tests for amp.Argument and amp.Command . |
Class |
|
Tests for amp.DateTime , amp._FixedOffsetTZInfo , and amp.utc . |
Class |
|
Tests for amp.Decimal . |
Class |
|
Undocumented |
Class |
|
Tests for amp.Descriptor , an argument type for passing a file descriptor over an AMP connection over a UNIX domain socket. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
This is a fake implementation of the interface implied by CommandLocator . |
Class |
|
This is a fake implementation of the 'box sender' interface implied by AMP . |
Class |
|
Tests for amp.Float . |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
This is a command which subclasses another command but does not override anything. |
Class |
|
This is a protocol which responds to InheritedCommand , and is used to test that inherited commands inherit their bases' errors if they do not respond to any of their own. |
Class |
|
This locator should inherit the responder from OverridingLocator . |
Class |
|
No class docstring; 0/1 class variable, 1/2 method documented |
Class |
|
Tests for ListOf combined with amp.DateTime . |
Class |
|
Tests for ListOf combined with amp.Decimal for not-a-number values. |
Class |
|
Tests for ListOf combined with amp.Decimal . |
Class |
|
Tests for ListOf combined with amp.Integer . |
Class |
|
Tests to ensure ListOf AMP arguments can be omitted from AMP commands via the 'optional' flag. |
Class |
|
Tests for ListOf combined with amp.String . |
Class |
|
Base class for testing ListOf , a parameterized zero-or-more argument type. |
Class |
|
Tests for ListOf combined with amp.Unicode . |
Class |
|
Undocumented |
Class |
|
Utility for connected reactor-using tests. |
Class |
|
No class docstring; 1/1 method documented |
Class |
|
A command which overrides parseResponse , parseArguments , and makeResponse . |
Class |
|
A unique dict subclass. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
An amp.AMP subclass which overrides private methods to avoid testing the network. It also provides a responder for MagicSchemaCommand that does nothing, so that tests can test aspects of the interaction of ... |
Class |
|
This is a protocol which responds to BaseCommand , and is used to test that inheritance does not interfere with the normal handling of errors. |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/3 instance variable, 1/3 method documented |
Class |
|
A locator which overrides the responder to the 'simple' command. |
Class |
|
No class docstring; 4/4 methods documented |
Class |
|
No class docstring; 1/1 method documented |
Class |
|
Undocumented |
Class |
|
An amp.Argument which encodes its parser and serializer arguments *including the protocol* into its parsed and serialized forms. |
Class |
|
A command that has argument and response schemas which use ProtocolIncludingArgument . |
Class |
|
A ProtocolIncludingCommand subclass whose commandType is MyBox |
Class |
|
Tests for amp.RemoteAmpError . |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
A very simple greeting command that uses a few basic argument types. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Specific implementation of server side protocol with different management of TLS. |
Class |
|
A locator which implements a responder to the 'simple' command. |
Class |
|
A trivial protocol for use in testing where a Protocol is expected. |
Class |
|
Undocumented |
Class |
|
Tests what happened when ssl is not available in current installation. |
Class |
|
No class docstring; 4/4 methods documented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
An in-memory implementation of interfaces.IUNIXTransport which collects all data given to it for later inspection. |
Class |
|
Tests for amp.utc . |
Class |
|
Undocumented |
Class |
|
No class docstring; 1/1 method documented |
Class | WTF |
An example of an invalid command. |
Exception |
|
Greeting was insufficiently kind. |
Exception |
|
This error is used to check inheritance. |
Exception |
|
This is a distinct error for checking inheritance. |
Exception |
|
Undocumented |
Exception |
|
Greeting was insufficiently kind. |
Exception |
|
Asked to switch to the wrong protocol. |
Function | connected |
Returns a 3-tuple: (client, server, pump) |
Function | show |
Undocumented |
Function | temp |
Undocumented |
Constant | SWITCH |
Undocumented |
Constant | SWITCH |
Undocumented |
Constant | THING |
Undocumented |
Variable | reactor |
Undocumented |
Variable | skip |
Undocumented |
Variable | tempcert |
Undocumented |
Function | _lose |
Undocumented |
def connectedServerAndClient(ServerClass=SimpleSymmetricProtocol, ClientClass=SimpleSymmetricProtocol, *a, **kw):
(source)
¶
Returns a 3-tuple: (client, server, pump)