def METHOD_NAME(self, resolver):
    resolver.side_effect = ["127.0.0.1", "10.16.23.5", "11.22.33.44"]
    hosts = [
        {"host": "127.0.0.1", "port": 9200},
        # also applies default port if none given
        {"host": "10.16.23.5"},
        {"host": "site.example.com", "port": 9200},
    ]
    self.assertEqual([
        ("127.0.0.1", 9200),
        ("10.16.23.5", 9200),
        ("11.22.33.44", 9200),
    ], builder.to_ip_port(hosts))