'Test that query timeouts after some seconds.'

def test_queryTimeout(self):

    d = self.proto.query(('127.0.0.1', 21345), [dns.Query('foo')])
    self.assertEqual(len(self.proto.liveMessages), 1)
    self.clock.advance(10)
    self.assertFailure(d, dns.DNSQueryTimeoutError)
    self.assertEqual(len(self.proto.liveMessages), 0)
    return d
