Tests for twisted.protocols.amp.
| Class | TestProto | A trivial protocol for use in testing where a Protocol is
expected. |
| Class | SimpleSymmetricProtocol | Undocumented |
| Class | UnfriendlyGreeting | Greeting was insufficiently kind. |
| Class | DeathThreat | Greeting was insufficiently kind. |
| Class | UnknownProtocol | Asked to switch to the wrong protocol. |
| Class | TransportPeer | Undocumented |
| Class | Hello | Undocumented |
| Class | NoAnswerHello | Undocumented |
| Class | FutureHello | Undocumented |
| Class | WTF | An example of an invalid command. |
| Class | BrokenReturn | An example of a perfectly good command, but the handler is going to return None... |
| Class | Goodbye | Undocumented |
| Class | WaitForever | Undocumented |
| Class | GetList | Undocumented |
| Class | DontRejectMe | Undocumented |
| Class | SecuredPing | Undocumented |
| Class | TestSwitchProto | Undocumented |
| Class | SingleUseFactory | Undocumented |
| Class | ThingIDontUnderstandError | Undocumented |
| Class | FactoryNotifier | Undocumented |
| Class | SimpleSymmetricCommandProtocol | Undocumented |
| Class | DeferredSymmetricCommandProtocol | Undocumented |
| Class | BadNoAnswerCommandProtocol | No class docstring; 1/1 methods documented |
| Class | NoAnswerCommandProtocol | Undocumented |
| Function | connectedServerAndClient | Returns a 3-tuple: (client, server, pump) |
| Class | TotallyDumbProtocol | Undocumented |
| Class | LiteralAmp | Undocumented |
| Class | AmpBoxTests | Test a few essential properties of AMP boxes, mostly with respect to serialization correctness. |
| Class | ParsingTests | No class docstring; 4/4 methods documented |
| Class | FakeLocator | This is a fake implementation of the interface implied by CommandLocator. |
| Class | FakeSender | This is a fake implementation of the 'box sender' interface implied by
AMP. |
| Class | CommandDispatchTests | The AMP CommandDispatcher class dispatches converts AMP boxes into commands and responses using Command.responder decorator. |
| Class | SimpleGreeting | A very simple greeting command that uses a few basic argument types. |
| Class | TestLocator | A locator which implements a responder to the 'simple' command. |
| Class | OverridingLocator | A locator which overrides the responder to the 'simple' command. |
| Class | InheritingLocator | This locator should inherit the responder from OverridingLocator. |
| Class | OverrideLocatorAMP | No class docstring; 1/3 methods documented |
| Class | CommandLocatorTests | The CommandLocator should enable users to specify responders to commands as functions that take structured objects, annotated with metadata. |
| Class | BinaryProtocolTests | Tests for amp.BinaryBoxProtocol. |
| Class | AMPTests | No class docstring; 38/38 methods documented |
| Class | PretendRemoteCertificateAuthority | Undocumented |
| Class | IOSimCert | No class docstring; 1/2 methods documented |
| Class | OKCert | Undocumented |
| Class | GrumpyCert | Undocumented |
| Class | DroppyCert | Undocumented |
| Class | SecurableProto | Undocumented |
| Class | TLSTests | No class docstring; 4/4 methods documented |
| Class | TLSNotAvailableTests | Tests what happened when ssl is not available in current installation. |
| Class | InheritedError | This error is used to check inheritance. |
| Class | OtherInheritedError | This is a distinct error for checking inheritance. |
| Class | BaseCommand | This provides a command that will be subclassed. |
| Class | InheritedCommand | This is a command which subclasses another command but does not override anything. |
| Class | AddErrorsCommand | This is a command which subclasses another command but adds errors to the list. |
| Class | NormalCommandProtocol | 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 | InheritedCommandProtocol | 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 | AddedCommandProtocol | 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 | CommandInheritanceTests | These tests verify that commands inherit error conditions properly. |
| Class | LiveFireBase | Utility for connected reactor-using tests. |
| Function | show | Undocumented |
| Function | tempSelfSigned | Undocumented |
| Class | LiveFireTLSTests | No class docstring; 1/1 methods documented |
| Class | SlightlySmartTLS | Specific implementation of server side protocol with different management of TLS. |
| Class | PlainVanillaLiveFireTests | No class docstring; 1/1 methods documented |
| Class | WithServerTLSVerificationTests | No class docstring; 1/1 methods documented |
| Class | ProtocolIncludingArgument | An amp.Argument
which encodes its parser and serializer arguments *including the protocol*
into its parsed and serialized forms. |
| Class | ProtocolIncludingCommand | A command that has argument and response schemas which use ProtocolIncludingArgument. |
| Class | MagicSchemaCommand | A command which overrides parseResponse,
parseArguments,
and makeResponse. |
| Class | NoNetworkProtocol | No summary |
| Class | MyBox | A unique dict subclass. |
| Class | ProtocolIncludingCommandWithDifferentCommandType | A ProtocolIncludingCommand
subclass whose commandType is MyBox |
| Class | CommandTests | Tests for amp.Argument
and amp.Command. |
| Class | ListOfTestsMixin | Base class for testing ListOf, a
parameterized zero-or-more argument type. |
| Class | ListOfStringsTests | Tests for ListOf combined
with amp.String. |
| Class | ListOfIntegersTests | Tests for ListOf combined
with amp.Integer. |
| Class | ListOfUnicodeTests | Tests for ListOf combined
with amp.Unicode. |
| Class | ListOfDecimalTests | Tests for ListOf combined
with amp.Decimal. |
| Class | ListOfDecimalNanTests | Tests for ListOf combined
with amp.Decimal for
not-a-number values. |
| Class | DecimalTests | Tests for amp.Decimal. |
| Class | FloatTests | Tests for amp.Float. |
| Class | ListOfDateTimeTests | Tests for ListOf combined
with amp.DateTime. |
| Class | ListOfOptionalTests | Tests to ensure ListOf AMP
arguments can be omitted from AMP commands via the 'optional' flag. |
| Class | UNIXStringTransport | An in-memory implementation of interfaces.IUNIXTransport
which collects all data given to it for later inspection. |
| Class | DescriptorTests | Tests for amp.Descriptor,
an argument type for passing a file descriptor over an AMP connection over
a UNIX domain socket. |
| Class | DateTimeTests | Tests for amp.DateTime,
amp._FixedOffsetTZInfo,
and amp.utc. |
| Class | UTCTests | Tests for amp.utc. |
| Class | RemoteAmpErrorTests | Tests for amp.RemoteAmpError. |
| Function | _loseAndPass | Undocumented |