

def TItems(items):
    'Checks individual items of a container.\n\n  If the verified value and the list of expected items differ in length, this\n  check considers only as many items as are contained in the shorter list. Use\n  L{TIsLength} to enforce a certain length.\n\n  @type items: list\n  @param items: List of checks\n\n  '
    assert items, 'Need items'
    text = ['Item', 'item']
    desc = WithDesc(utils.CommaJoin((('%s %s is %s' % (text[int((desc > 0))], idx, Parens(check))) for (idx, check) in enumerate(items))))
    return desc((lambda value: compat.all((check(i) for (check, i) in zip(items, value)))))

dataset/ETHPy150Open ganeti/ganeti/lib/ht.py TItems/VarMisuse@43/194 `idx`->`desc`