'L{hosts.Resolver.getHostByName} returns a L{Deferred} which fires with a
string giving the address of the queried name as found in the resolver\'s
hosts file.'

def test_getHostByName(self):

    data = [('EXAMPLE', '1.1.1.1'), ('EXAMPLE.EXAMPLETHING', '1.1.1.1'), ('MIXED', '1.1.1.2')]
    ds = [self.resolver.getHostByName(n).addCallback(self.assertEqual, ip) for (n, ip) in data]
    return gatherResults(ds)
