#NEWLINE# def test_temp_dir_is_deleted_on_scope_exit( self ) : #NEWLINE# #INDENT# runner = mock . Mock ( ) #NEWLINE# dirname = 'dir' #NEWLINE# with files . RemoteDir ( self , dirname ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . assertCalledOnce ( runner . run_ignoring_errors )