#NEWLINE# def test_bytes_array( self ) : #NEWLINE# #INDENT# buf = b'1234567890' #NEWLINE# import array #NEWLINE# a = array . array ( 'b' , list ( memio ) ) #NEWLINE# memio = self . ioclass ( a ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , buf ) #NEWLINE# self . assertEqual ( memio . write ( a ) , 10 ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , buf )