def METHOD_NAME(self, answer):
    # type: (dns.resolver.Answer) -> None
    number_of_results = len(answer.rrset.items)
    assert len(self.resolves_as_ips) == number_of_results
    result_ips = []
    for rip in answer.rrset.items:
        result = rip.to_text().lower()
        if result.endswith('.'):
            result = result[:-1]
        result_ips.append(result)
    for ip in self.resolves_as_ips:
        assert ip in result_ips