'L{server.DNSServerFactory.messageReceived} passes all messages to
L{server.DNSServerFactory.allowQuery} along with the receiving protocol
and origin address.'

def test_messageReceivedAllowQuery(self):

    message = dns.Message()
    dummyProtocol = object()
    dummyAddress = object()
    f = RaisingDNSServerFactory()
    e = self.assertRaises(RaisingDNSServerFactory.AllowQueryArguments, f.messageReceived, message=message, proto=dummyProtocol, address=dummyAddress)
    (args, kwargs) = e.args
    self.assertEqual(args, (message, dummyProtocol, dummyAddress))
    self.assertEqual(kwargs, {})
