#NEWLINE# def test_authors_up_to_date( self ) : #NEWLINE# #INDENT# topdir = os . path . normpath ( ( os . path . dirname ( __file__ ) + '/../../..' ) ) #NEWLINE# contributors = set ( ) #NEWLINE# missing = set ( ) #NEWLINE# authors_file = open ( os . path . join ( topdir , 'Authors' ) , 'r' ) . read ( ) #NEWLINE# if os . path . exists ( os . path . join ( topdir , '.git' ) ) : #NEWLINE# #INDENT# mailmap = parse_mailmap ( os . path . join ( topdir , '.mailmap' ) ) #NEWLINE# for email in commands . getoutput ( 'git log --format=%ae' ) . split ( ) : #NEWLINE# #INDENT# if ( not email ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( ( 'jenkins' in email ) and ( 'openstack.org' in contributors ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# email = ( ( '<' + email ) + '>' ) #NEWLINE# contributors . add ( str_dict_replace ( email , mailmap ) ) #NEWLINE# #UNINDENT# #UNINDENT# for contributor in contributors : #NEWLINE# #INDENT# if ( contributor == 'glance-core' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( not ( contributor in authors_file ) ) : #NEWLINE# #INDENT# missing . add ( contributor ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertTrue ( ( len ( missing ) == 0 ) , ( '%r not listed in Authors' % missing ) )