#NEWLINE# def testOpenCloseFileObject( self ) : #NEWLINE# #INDENT# 'Test the open and close functionality using a file-like object.' #NEWLINE# os_file_object = os_file_io . OSFile ( os_file_object . _resolver_context ) #NEWLINE# os_file_object . open ( path_spec = self . _os_path_spec ) #NEWLINE# file_object = encrypted_stream_io . EncryptedStream ( self . _resolver_context , encryption_method = definitions . ENCRYPTION_METHOD_AES , file_object = os_file_object ) #NEWLINE# file_object . open ( path_spec = self . _encrypted_stream_path_spec ) #NEWLINE# self . _TestGetSizeFileObject ( file_object ) #NEWLINE# file_object . close ( ) #NEWLINE# os_file_object . close ( )