'L{server.DNSServerFactory.handleQuery} takes the first query from the
supplied message and dispatches it to
L{server.DNSServerFactory.resolver.query}.'

def test_handleQuery(self):

    m = dns.Message()
    m.addQuery('one.example.com')
    m.addQuery('two.example.com')
    f = server.DNSServerFactory()
    f.resolver = RaisingResolver()
    e = self.assertRaises(RaisingResolver.QueryArguments, f.handleQuery, message=m, protocol=NoopProtocol(), address=None)
    ((query,), kwargs) = e.args
    self.assertEqual(query, m.queries[0])
