def test_if():
    vy = '[ 1 | 2 ]'
    py = transpile(vy)
    expected = 'condition = pop(stack, 1, ctx=ctx)\nif boolify(condition, ctx):\n    stack.append(1)\nelse:\n    stack.append(2)\n'
    assert (py == expected)
def test_if():
    vy = '[ 1 | 2 ]'
    py = transpile(vy)
    expected = 'condition = pop(stack, 1, ctx=ctx)\nif boolify(condition, ctx):\n    stack.append(1)\nelse:\n    stack.append(2)\n'
    assert (py == expected)