def test_getHostByName(self):
        data = [(b'EXAMPLE', '1.1.1.1'),
                (b'EXAMPLE.EXAMPLETHING', '1.1.1.1'),
                (b'MIXED', '1.1.1.2'),
                ]
        ds = [self.resolver.getHostByName(n).addCallback(self.assertEqual, ip)
              for n, ip in data]
        return gatherResults(ds)
L{hosts.Resolver.getHostByName} returns a L{Deferred} which fires with a
dataset/ETHPy150Open twisted/twisted/twisted/names/test/test_hosts.py/HostsTests.test_getHostByName