#NEWLINE# def testCopystat( self ) : #NEWLINE# #INDENT# src_file = 'xyzzy' #NEWLINE# dst_file = 'xyzzy_copy' #NEWLINE# src_obj = self . filesystem . CreateFile ( src_file ) #NEWLINE# dst_obj = self . filesystem . CreateFile ( dst_file ) #NEWLINE# src_obj . st_mode = ( ( src_obj . st_mode & ( ~ 4095 ) ) | 488 ) #NEWLINE# src_obj . st_uid = 123 #NEWLINE# src_obj . st_gid = 123 #NEWLINE# src_obj . st_atime = time . time ( ) #NEWLINE# src_obj . st_mtime = time . time ( ) #NEWLINE# self . assertTrue ( self . filesystem . Exists ( src_file ) ) #NEWLINE# self . assertTrue ( self . filesystem . Exists ( dst_file ) ) #NEWLINE# self . shutil . copystat ( src_file , dst_file ) #NEWLINE# self . assertEqual ( src_obj . st_mode , dst_obj . st_mode ) #NEWLINE# self . assertEqual ( src_obj . st_uid , dst_obj . st_uid ) #NEWLINE# self . assertEqual ( src_obj . st_gid , dst_obj . st_gid ) #NEWLINE# self . assertEqual ( src_obj . st_atime , src_file . st_atime ) #NEWLINE# self . assertEqual ( src_obj . st_mtime , dst_obj . st_mtime )