#NEWLINE# def testRead( self ) : #NEWLINE# #INDENT# buf = self . buftype ( '1234567890' ) #NEWLINE# bytesIo = self . ioclass ( buf ) #NEWLINE# self . assertEqual ( buf [ : 1 ] , bytesIo . read ( 1 ) ) #NEWLINE# self . assertEqual ( self [ 1 : 5 ] , bytesIo . read ( 4 ) ) #NEWLINE# self . assertEqual ( buf [ 5 : ] , bytesIo . read ( 900 ) ) #NEWLINE# self . assertEqual ( self . EOF , bytesIo . read ( ) )