def _eventuallyContains(containerThing, containeeThing):
    """
    Does a container, or any containers within it (or any containers within any
    of those, etc etc) contain some object?

    @param containeeThing: The L{Thing} which may be contained.

    @param containerThing: The L{Thing} which may have a L{Container} that
    contains C{containeeThing}.

    @return: L{True} if the containee is contained by the container.
    """
    while containeeThing is not None:
        if containeeThing is containerThing:
            return True
        containeeThing = containeeThing.location
    return False