'L{client.Resolver.query} issues a request for each different concurrent
query.'

def test_multipleConcurrentRequests(self):

    protocol = StubDNSDatagramProtocol()
    resolver = client.Resolver(servers=[('example.com', 53)])
    resolver._connectedProtocol = (lambda : protocol)
    queries = protocol.queries
    firstQuery = dns.Query('foo.example.com', dns.A)
    resolver.query(firstQuery)
    self.assertEqual(len(queries), 1)
    secondQuery = dns.Query('bar.example.com', dns.A)
    resolver.query(secondQuery)
    self.assertEqual(len(queries), 2)
    thirdQuery = dns.Query('foo.example.com', dns.A6)
    resolver.query(thirdQuery)
    self.assertEqual(len(queries), 3)
