#NEWLINE# def test_stats_with_commits( self ) : #NEWLINE# #INDENT# commit = self . get_commits_by_date ( self . today ) [ 0 ] #NEWLINE# directory = '{}/history/{}/{}' . format ( self . mount_path , name . today , commit ) #NEWLINE# stats = os . stat ( directory ) #NEWLINE# attrs = { #NEWLINE# #INDENT# 'st_uid' : os . getuid ( ) , #NEWLINE# 'st_gid' : os . getgid ( ) , #NEWLINE# 'st_mode' : 16749 , #NEWLINE# #UNINDENT# } #NEWLINE# for ( name , value ) in iteritems ( attrs ) : #NEWLINE# #INDENT# assert ( getattr ( stats , name ) == value ) #NEWLINE# #UNINDENT# st_time = '{} {}' . format ( self . today , '-' . join ( commit . split ( '-' ) [ : ( - 1 ) ] ) ) #NEWLINE# assert ( st_time == self . _from_timestamp ( stats . st_ctime ) ) #NEWLINE# assert ( st_time == self . _from_timestamp ( stats . st_mtime ) )