'L{ResolverBase.query} looks up a method to invoke using the type of the
query passed to it and the C{typeToMethod} mapping on itself.'

def test_typeToMethodDispatch(self):

    results = []
    resolver = ResolverBase()
    resolver.typeToMethod = {12345: (lambda query, timeout: results.append((query, timeout)))}
    query = Query(name='example.com', type=12345)
    resolver.query(query, 123)
    self.assertEqual([('example.com', 123)], results)
