def resolve(self, hostname):
        """
        Resolve a hostname by looking it up in the C{names} dictionary.
        """
        try:
            return defer.succeed(self.names[hostname])
        except __HOLE__:
            return defer.fail(
                DNSLookupError("FakeResolverReactor couldn't find " + hostname))
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_socks.py/FakeResolverReactor.resolve