#NEWLINE# def test_receive( self ) : #NEWLINE# #INDENT# '\n        Test receiving data find the same data send.\n        ' #NEWLINE# r = self . getProtocol ( ) #NEWLINE# for s in self . strings : #NEWLINE# #INDENT# for c in ( struct . pack ( r . structFormat , len ( s ) ) + s ) : #NEWLINE# #INDENT# r . dataReceived ( c ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( r . received , self . strings )