def test_complete_nested():
    app.fire(test())
    while len(app):
        app.flush()

    assert app._state_when_success == "Old state"
    assert app._state_when_complete == "Final state"
dataset/ETHPy150Open circuits/circuits/tests/core/test_complete.py/test_complete_nested/original