#NEWLINE# @ classmethod #NEWLINE# def _compare_group( cls , stats1 , stats2 ) : #NEWLINE# #INDENT# attr_list = [ 'type' , 'group_id' , 'buckets' ] #NEWLINE# for attr in attr_list : #NEWLINE# #INDENT# value1 = getattr ( stats1 , attr ) #NEWLINE# value2 = getattr ( stats2 , attr ) #NEWLINE# if ( str ( value1 ) != str ( value2 ) ) : #NEWLINE# #INDENT# return ( False , ( 'group_stats(%s != %s)' % ( value1 , value2 ) ) ) #NEWLINE# #UNINDENT# return ( True , None )