'L{server.DNSServerFactory.gotResolverError} calls
L{server.DNSServerFactory._responseFromMessage} to generate a response.'

def test_gotResolverErrorCallsResponseFromMessage(self):

    factory = NoResponseDNSServerFactory()
    factory._responseFromMessage = raiser
    request = dns.Message()
    request.timeReceived = 1
    e = self.assertRaises(RaisedArguments, factory.gotResolverError, failure.Failure(error.DomainError()), protocol=None, message=request, address=None)
    self.assertEqual(((), dict(message=request, rCode=dns.ENAME)), (e.args, e.kwargs))
