def test_gotResolverErrorLogging(self):
        """
        L{server.DNSServerFactory.gotResolver} logs a message if C{verbose > 0}.
        """
        f = NoResponseDNSServerFactory(verbose=1)
        assertLogMessage(
            self,
            ["Lookup failed"],
            f.gotResolverError,
            failure.Failure(error.DomainError()),
            protocol=NoopProtocol(), message=dns.Message(), address=None)

        L{server.DNSServerFactory.gotResolver} logs a message if C{verbose > 0}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_server.py