parameters: (self, lines_ref, lines_out)
return_statement: return results_found, results_start_index
docstring: This function compares the headers of *.post.res files
          It loops the lines until Results are found
docstring_summary: This function compares the headers of *.post.res files
          It loops the lines until Results are found
docstring_tokens: This function compares the headers of * . post . res files It loops the lines until Results are found
function: def __ComparePostResFileHeader(self, lines_ref, lines_out):
          """This function compares the headers of *.post.res files
          It loops the lines until Results are found
          """
          results_start_index = -1
          results_found = False
  
          for i in range(len(lines_ref)):
              if lines_ref[i].startswith("Result "):
                  # Now the end of the header is found
                  results_start_index = i
                  results_found = True
                  break
  
              lines_ref_splitted = lines_ref[i].split()
              lines_out_splitted = lines_out[i].split()
  
              self.assertTrue(len(lines_ref_splitted) == len(lines_out_splitted),
                              msg="Lines have different length!" + self.info_msg)
  
              for ref_value, out_value in zip(lines_ref_splitted, lines_out_splitted):
                  self.assertTrue(ref_value == out_value,
                                  msg=ref_value + " != " + out_value + self.info_msg)
  
          return results_found, results_start_index
function_tokens: def __ComparePostResFileHeader ( self , lines_ref , lines_out ) : results_start_index = - 1 results_found = False for i in range ( len ( lines_ref ) ) : if lines_ref [ i ] . startswith ( "Result " ) : # Now the end of the header is found results_start_index = i results_found = True break lines_ref_splitted = lines_ref [ i ] . split ( ) lines_out_splitted = lines_out [ i ] . split ( ) self . assertTrue ( len ( lines_ref_splitted ) == len ( lines_out_splitted ) , msg = "Lines have different length!" + self . info_msg ) for ref_value , out_value in zip ( lines_ref_splitted , lines_out_splitted ) : self . assertTrue ( ref_value == out_value , msg = ref_value + " != " + out_value + self . info_msg ) return results_found , results_start_index