Exemplo n.º 1
0
def test_nested():
    assert steps.get_current() is None
    inner_level = step_outer()
    assert steps.get_current() is None
    assert inner_level == 2
Exemplo n.º 2
0
def step_a(*, step):
    assert steps.get_current() is not None
    return step.level
Exemplo n.º 3
0
def test_single():
    assert steps.get_current() is None
    step_a()
    assert steps.get_current() is None