#NEWLINE# def testSendingFile( self ) : #NEWLINE# #INDENT# testStr = ( ( ( 'xyz' * 100 ) + ( 'abc' * 100 ) ) + ( '123' * 100 ) ) #NEWLINE# s = BufferingServer ( ) #NEWLINE# c = FileSendingClient ( StringIO . StringIO ( testStr ) ) #NEWLINE# d = loopback . loopbackTCP ( s , c ) #NEWLINE# d . addCallback ( ( lambda x : self . assertEquals ( s . buffer , testStr ) ) ) #NEWLINE# return d