#NEWLINE# @ utils . skip_long_test ( services = SUPPORTED_SERVICES ) #NEWLINE# def test_rename( self ) : #NEWLINE# #INDENT# self . update_events ( ) #NEWLINE# self . cursor = self . get_latest_cursor ( ) #NEWLINE# self . file . name = 'renamed-file.txt' #NEWLINE# self . file . save ( ) #NEWLINE# events = self . get_most_recent_events ( self . cursor ) #NEWLINE# event_filter = { #NEWLINE# #INDENT# 'metadata.id' : self . file . id , #NEWLINE# 'type' : 'rename' , #NEWLINE# #UNINDENT# } #NEWLINE# if ( self . account . service in LIMITED_EVENTS_SERVICES ) : #NEWLINE# #INDENT# event_filter [ 'type' ] = 'add' #NEWLINE# #UNINDENT# event = self . filter_events ( events , event_filter , expect_one = True ) #NEWLINE# if event : #NEWLINE# #INDENT# self . assertEqual ( event . metadata . id , self . file . id ) #NEWLINE# if ( self . account . service in LIMITED_EVENTS_SERVICES ) : #NEWLINE# #INDENT# self . assertEqual ( event . type , 'add' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertEqual ( event . type , 'rename' )