def test_getHostByName(self):
        """
        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.
        """
        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
        string giving the address of the queried name as found in the resolver's
        hosts file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_hosts.py