def _lookup(self, name, cls, qtype, timeout):
        if self.results is not None:
            return defer.succeed((self.results, [], []))
        else:
            return defer.fail(self.failure)
Return the result or failure on lookup.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/names/test/test_srvconnect.py/FakeResolver._lookup