twisted.test.test_amp.ProtocolIncludingArgument(amp.Argument)
class documentationtwisted.test.test_amp
(View In Hierarchy)
An amp.Argument
which encodes its parser and serializer arguments *including the protocol*
into its parsed and serialized forms.
Method | fromStringProto | Don't decode anything; just return all possible information. |
Method | toStringProto | Encode identifying information about object
and protocol into a string for later verification. |
Inherited from Argument:
Method | __init__ | Create an Argument. |
Method | retrieve | Retrieve the given key from the given dictionary, removing it if found. |
Method | fromBox | Populate an 'out' dictionary with mapping names to Python values decoded from an 'in' AmpBox mapping strings to string values. |
Method | toBox | Populate an 'out' AmpBox with strings encoded from an 'in' dictionary mapping names to Python values. |
Method | fromString | Convert a string to a Python object. Subclasses must implement this. |
Method | toString | Convert a Python object into a string for passing over the network. |
Don't decode anything; just return all possible information.
Returns | A two-tuple of the input string and the protocol. |
Encode identifying information about object
and protocol into a string for later verification.