'After a response is received to a query issued with
L{client.Resolver.query}, another query with the same parameters
results in a new network request.'

def test_multipleSequentialRequests(self):

    protocol = StubDNSDatagramProtocol()
    resolver = client.Resolver(servers=[('example.com', 53)])
    resolver._connectedProtocol = (lambda : protocol)
    queries = protocol.queries
    query = dns.Query('foo.example.com', dns.A)
    resolver.query(query)
    self.assertEqual(len(queries), 1)
    queries.pop()[(-1)].callback(dns.Message())
    resolver.query(query)
    self.assertEqual(len(queries), 1)
