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_receive Test receiving data find the same data send.
Method test_partial Send partial data, nothing should be definitely received.
Method test_send Test sending data over protocol.
Method test_lengthLimitExceeded 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_longStringNotDelivered 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_stringReceivedNotImplemented When IntNStringReceiver.stringReceived is not overridden in a subclass, calling it raises NotImplementedError.

Inherited from LPTestCaseMixin:

Method getProtocol Return a new instance of self.protocol connected to a new instance of proto_helpers.StringTransport.
Method test_illegal Assert that illegal strings cause the transport to be closed.
def test_receive(self):

Test receiving data find the same data send.

def test_partial(self):

Send partial data, nothing should be definitely received.

def test_send(self):

Test sending data over protocol.

def test_lengthLimitExceeded(self):

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.

def test_longStringNotDelivered(self):

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.

def test_stringReceivedNotImplemented(self):

When IntNStringReceiver.stringReceived is not overridden in a subclass, calling it raises NotImplementedError.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.