#NEWLINE# def test_tell( self ) : #NEWLINE# #INDENT# buf = self . buftype ( '1234567890' ) #NEWLINE# memio = self . ioclass ( buf ) #NEWLINE# self . assertEqual ( memio . tell ( ) , 0 ) #NEWLINE# memio . seek ( 5 ) #NEWLINE# self . assertEqual ( memio . tell ( ) , 5 ) #NEWLINE# memio . seek ( 10000 ) #NEWLINE# self . assertEqual ( memio . tell ( ) , 10000 ) #NEWLINE# memio . close ( ) #NEWLINE# self . assertRaises ( ValueError , memio . tell )