def METHOD_NAME(self, rollback_registry):
    registry = rollback_registry
    query = registry.System.Cache.query("id", "method").limit(2)
    caches = query.all()
    def to_dict(cache):
        return {
            "id": cache.id,
            "method": cache.method,
        }
    dictall = query.dictall()
    for i in range(2):
        assert to_dict(caches[i]) in dictall