예제 #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
예제 #2
0
def step_a(*, step):
    assert steps.get_current() is not None
    return step.level
예제 #3
0
def test_single():
    assert steps.get_current() is None
    step_a()
    assert steps.get_current() is None