async def _check_resolver_ans(<EOL>self, dns_answer_list, record_name,<EOL>record_data_list, record_ttl, record_type_code):
type_filtered_list = [<EOL>ans for ans in dns_answer_list if ans.qtype == record_type_code<EOL>]<EOL>if len(type_filtered_list) != len(record_data_list):<EOL><INDENT>return False<EOL><DEDENT>for rec in type_filtered_list:<EOL><INDENT>conditions = [rec.name == record_name,<EOL>rec.ttl == record_ttl,<EOL>rec.data in record_data_list]<EOL>if not all(conditions):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Check if resolver answer is equal to record data.

        Args:
            dns_answer_list (list): DNS answer list contains record objects.
            record_name (str): Record name.
            record_data_list (list): List of data values for the record.
            record_ttl (int): Record time-to-live info.
            record_type_code (int): Record type code.

        Returns:
            boolean indicating if DNS answer data is equal to record data.