'L{ResolverBase.query} returns a L{Deferred} which fails with
L{NotImplementedError} when called with a query of a type not present in
its C{typeToMethod} dictionary.'

def test_unknownQueryType(self):

    resolver = ResolverBase()
    resolver.typeToMethod = {}
    query = Query(name='example.com', type=12345)
    queryDeferred = resolver.query(query, 123)
    result = []
    queryDeferred.addBoth(result.append)
    self.assertIsInstance(result[0], Failure)
    result[0].trap(NotImplementedError)
