class IntNTestCaseMixin(LPTestCaseMixin): (source)
Known subclasses: twisted.protocols.test.test_basic.Int16Tests
, twisted.protocols.test.test_basic.Int32Tests
, twisted.protocols.test.test_basic.Int8Tests
, twisted.test.test_stateful.Int32Tests
TestCase mixin for int-prefixed protocols.
Method | test_length |
When a length prefix is received which is greater than the protocol's MAX_LENGTH attribute, the lengthLimitExceeded method is called with the received length prefix. |
Method | test_long |
If a length prefix for a string longer than MAX_LENGTH is delivered to dataReceived at the same time as the entire string, the string is not passed to stringReceived. |
Method | test |
Send partial data, nothing should be definitely received. |
Method | test |
Test receiving data find the same data send. |
Method | test |
Test sending data over protocol. |
Method | test_string |
When IntNStringReceiver.stringReceived is not overridden in a subclass, calling it raises NotImplementedError. |
Class Variable | illegal |
Undocumented |
Class Variable | partial |
Undocumented |
Class Variable | protocol |
Undocumented |
Class Variable | strings |
Undocumented |
Inherited from LPTestCaseMixin
:
Method | get |
Return a new instance of self.protocol connected to a new instance of proto_helpers.StringTransport . |
Method | test |
Assert that illegal strings cause the transport to be closed. |
When a length prefix is received which is greater than the protocol's MAX_LENGTH attribute, the lengthLimitExceeded method is called with the received length prefix.
If a length prefix for a string longer than MAX_LENGTH is delivered to dataReceived at the same time as the entire string, the string is not passed to stringReceived.
When IntNStringReceiver.stringReceived
is not overridden in a subclass, calling it raises NotImplementedError.