#NEWLINE# def test_overseek( self ) : #NEWLINE# #INDENT# buf = self . buftype ( '1234567890' ) #NEWLINE# memio = self . ioclass ( buf ) #NEWLINE# self . assertEqual ( memio . seek ( ( len ( buf ) + 1 ) ) , 11 ) #NEWLINE# self . assertEqual ( memio . read ( ) , self . EOF ) #NEWLINE# self . assertEqual ( memio . tell ( ) , 11 ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , buf ) #NEWLINE# memio . write ( self . EOF ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , buf ) #NEWLINE# memio . write ( buf ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , ( ( buf + self . buftype ( '\x00' ) ) + buf ) )