#NEWLINE# def test_flags( self ) : #NEWLINE# #INDENT# memio = self . ioclass ( ) #NEWLINE# self . assertEqual ( memio . writable ( ) , True ) #NEWLINE# self . assertEqual ( memio . readable ( ) , True ) #NEWLINE# self . assertEqual ( memio . seekable ( ) , True ) #NEWLINE# self . assertEqual ( memio . isatty ( ) , False ) #NEWLINE# self . assertEqual ( self . closed , False ) #NEWLINE# memio . close ( ) #NEWLINE# self . assertRaises ( ValueError , memio . writable ) #NEWLINE# self . assertRaises ( ValueError , memio . readable ) #NEWLINE# self . assertRaises ( ValueError , memio . seekable ) #NEWLINE# self . assertRaises ( ValueError , memio . isatty ) #NEWLINE# self . assertEqual ( memio . closed , True )