def test_traverse():
    t = Symbol('t', 'var * {name: string, amount: int}')
    assert list(t._traverse()) in t

    expr = t.amount.sum()
    trav = list(expr._traverse())
    assert builtins.any(t.amount.isidentical(x) for x in trav)
dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_symbol.py/test_traverse/swapped operands of `in`