'If L{server.DNSServerFactory.sendReply} is supplied with a protocol
*and* an address tuple it will supply that address to
C{protocol.writeMessage}.'

def test_sendReplyWithAddress(self):

    m = dns.Message()
    dummyAddress = object()
    f = server.DNSServerFactory()
    e = self.assertRaises(RaisingProtocol.WriteMessageArguments, f.sendReply, protocol=RaisingProtocol(), message=m, address=dummyAddress)
    (args, kwargs) = e.args
    self.assertEqual(args, (m, dummyAddress))
    self.assertEqual(kwargs, {})
