#NEWLINE# def _check_and_gather_headers( response , out_headers ) : #NEWLINE# #INDENT# for ( header , value ) in response . headers : #NEWLINE# #INDENT# if header . startswith ( 'Fire' ) : #NEWLINE# #INDENT# index = int ( header . split ( '-' ) [ ( - 1 ) ] ) #NEWLINE# out_headers . append ( ( index , value ) ) #NEWLINE# match = bool ( FPC . FIRELOGGER_RESPONSE_HEADER . match ( header ) ) #NEWLINE# ( yield ( NT . assert_true , match , 'header is of correct format' ) )