#NEWLINE# def test_longStringNotDelivered( self ) : #NEWLINE# #INDENT# '\n        If a length prefix for a string longer than C{MAX_LENGTH} is delivered\n        to C{dataReceived} at the same time as the entire string, the string is\n        not passed to C{stringReceived}.\n        ' #NEWLINE# r = self . getProtocol ( ) #NEWLINE# r . MAX_LENGTH = 10 #NEWLINE# r . dataReceived ( ( struct . pack ( r . structFormat , 11 ) + ( 'x' * 11 ) ) ) #NEWLINE# self . assertEqual ( r . received , [ ] )